From 7014c5b27df5812209a6062fc70b2d52fa227959 Mon Sep 17 00:00:00 2001 From: boywaste Date: Sun, 25 Aug 2024 00:25:10 -0700 Subject: [PATCH] GDScript: Fix small mistake in script valid checks --- modules/gdscript/gdscript.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gdscript/gdscript.cpp b/modules/gdscript/gdscript.cpp index 7bf5e946fbb..3e38df05ea5 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;