summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/object/script_language_extension.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/object/script_language_extension.h b/core/object/script_language_extension.h
index 79cf712119..1a0ec29479 100644
--- a/core/object/script_language_extension.h
+++ b/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