summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript.cpp
diff options
context:
space:
mode:
authorboywaste <spartacrafter@gmail.com>2024-08-25 00:25:10 -0700
committerboywaste <spartacrafter@gmail.com>2024-08-30 19:41:02 -0700
commit7014c5b27df5812209a6062fc70b2d52fa227959 (patch)
tree8f7d1ff894543fcbee4f1a0d35fe395cdd0b5da3 /modules/gdscript/gdscript.cpp
parent568589c9d8c763bfb3a4348174d53b42d7c59f21 (diff)
downloadredot-engine-7014c5b27df5812209a6062fc70b2d52fa227959.tar.gz
GDScript: Fix small mistake in script valid checks
Diffstat (limited to 'modules/gdscript/gdscript.cpp')
-rw-r--r--modules/gdscript/gdscript.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript.cpp b/modules/gdscript/gdscript.cpp
index 7bf5e946fb..3e38df05ea 100644
--- a/modules/gdscript/gdscript.cpp
+++ b/modules/gdscript/gdscript.cpp
@@ -136,7 +136,7 @@ void GDScript::_super_implicit_constructor(GDScript *p_script, GDScriptInstance
}
}
ERR_FAIL_NULL(p_script->implicit_initializer);
- if (likely(valid)) {
+ if (likely(p_script->valid)) {
p_script->implicit_initializer->call(p_instance, nullptr, 0, r_error);
} else {
r_error.error = Callable::CallError::CALL_ERROR_INVALID_METHOD;