浏览代码

Fix Object type in GodotJSWrapper.

Zae 2 年之前
父节点
当前提交
bf61af6ae9
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      platform/web/js/libs/library_godot_javascript_singleton.js

+ 2 - 2
platform/web/js/libs/library_godot_javascript_singleton.js

@@ -88,7 +88,7 @@ const GodotJSWrapper = {
 				return GodotRuntime.getHeapValue(val, 'double');
 			case 4:
 				return GodotRuntime.parseString(GodotRuntime.getHeapValue(val, '*'));
-			case 21: // OBJECT
+			case 24: // OBJECT
 				return GodotJSWrapper.get_proxied_value(GodotRuntime.getHeapValue(val, 'i64'));
 			default:
 				return undefined;
@@ -117,7 +117,7 @@ const GodotJSWrapper = {
 			}
 			const id = GodotJSWrapper.get_proxied(p_val);
 			GodotRuntime.setHeapValue(p_exchange, id, 'i64');
-			return 21;
+			return 24; // OBJECT
 		},
 	},