Browse Source

Merge pull request #78392 from Gallilus/master

Fix `Ref<>.is_valid()` for ScriptInstanceExtension
Yuri Sizov 2 years ago
parent
commit
329652b6fe
1 changed files with 1 additions and 1 deletions
  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