From bf61af6ae90cedd2a56bd03703ab9ac8460acb31 Mon Sep 17 00:00:00 2001 From: Zae Date: Mon, 10 Oct 2022 19:28:43 +0800 Subject: Fix Object type in GodotJSWrapper. --- platform/web/js/libs/library_godot_javascript_singleton.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'platform/web') diff --git a/platform/web/js/libs/library_godot_javascript_singleton.js b/platform/web/js/libs/library_godot_javascript_singleton.js index 692f27676a..c86cbbae45 100644 --- a/platform/web/js/libs/library_godot_javascript_singleton.js +++ b/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 }, }, -- cgit v1.2.3