瀏覽代碼

Actually set GDScript static reference

George Marques 5 年之前
父節點
當前提交
0f1da72492
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      modules/gdscript/gdscript_function.cpp

+ 2 - 0
modules/gdscript/gdscript_function.cpp

@@ -363,6 +363,8 @@ Variant GDScriptFunction::call(GDScriptInstance *p_instance, const Variant **p_a
 		}
 	}
 
+	static_ref = script;
+
 	String err_text;
 
 #ifdef DEBUG_ENABLED