summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-09-04 18:55:31 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-09-04 18:55:31 +0200
commitdbdc4eb20462f5e1da8fda7eb6c7e08de7319d9c (patch)
treeb1a933075c48dc948d44a022991999140332ad41 /modules/gdscript/gdscript.cpp
parent721d280b8a7aad3ba409fad0ee9d9833876dc8fa (diff)
parent7014c5b27df5812209a6062fc70b2d52fa227959 (diff)
downloadredot-engine-dbdc4eb20462f5e1da8fda7eb6c7e08de7319d9c.tar.gz
Merge pull request #96330 from rune-scape/little-regression
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 e3f2a61090..276a12f5de 100644
--- a/modules/gdscript/gdscript.cpp
+++ b/modules/gdscript/gdscript.cpp
@@ -138,7 +138,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;