Merge pull request #78392 from Gallilus/master

Fix `Ref<>.is_valid()` for ScriptInstanceExtension
This commit is contained in:
Yuri Sizov 2023-06-20 21:19:20 +02:00 committed by GitHub
commit 329652b6fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -651,7 +651,7 @@ public:
#ifdef TOOLS_ENABLED #ifdef TOOLS_ENABLED
Ref<Script> script = get_script(); 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()); p_list->push_back(script->get_class_category());
} }
#endif // TOOLS_ENABLED #endif // TOOLS_ENABLED