瀏覽代碼

Fix gdnative build when WebRTC module is disabled.

Fabio Alessandrelli 5 年之前
父節點
當前提交
10e69f5fa9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/gdnative/net/webrtc_gdnative.cpp

+ 1 - 1
modules/gdnative/net/webrtc_gdnative.cpp

@@ -54,7 +54,7 @@ godot_error GDAPI godot_net_set_webrtc_library(const godot_net_webrtc_library *p
 #ifdef WEBRTC_GDNATIVE_ENABLED
 	return (godot_error)WebRTCPeerConnectionGDNative::set_default_library(p_lib);
 #else
-	return ERR_UNAVAILABLE;
+	return (godot_error)ERR_UNAVAILABLE;
 #endif
 }
 }