瀏覽代碼

Fix Ref<>.is_valid() for ScriptInstanceExtension

Only check the reference not the value.
David Cambré 2 年之前
父節點
當前提交
ceed30c442
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/object/script_language_extension.h

+ 1 - 1
core/object/script_language_extension.h

@@ -651,7 +651,7 @@ public:
 
 #ifdef TOOLS_ENABLED
 			Ref<Script> script = get_script();
-			if (script->is_valid() && pcount > 0) {
+			if (script.is_valid() && pcount > 0) {
 				p_list->push_back(script->get_class_category());
 			}
 #endif // TOOLS_ENABLED