mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Fix Ref<>.is_valid() for ScriptInstanceExtension
Only check the reference not the value.
This commit is contained in:
parent
a83eb16fba
commit
ceed30c442
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue