diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2022-12-01 10:21:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-01 10:21:21 +0100 |
commit | eb555d7559371963d846811260a11fb07dd72a3d (patch) | |
tree | a0b316461dafe0eae084ea8685dcb1c1e1f371a4 /modules/gdscript/gdscript_parser.h | |
parent | 0ff8742919af72c7412e63ef0f646cb4e7bd7d8f (diff) | |
parent | 8d2506e811148d6e716ec31886357a23e53dd42b (diff) | |
download | redot-engine-eb555d7559371963d846811260a11fb07dd72a3d.tar.gz |
Merge pull request #69303 from Chaosus/gds_fix_loops
Reset unassigned local variables to null in the loops
Diffstat (limited to 'modules/gdscript/gdscript_parser.h')
-rw-r--r-- | modules/gdscript/gdscript_parser.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_parser.h b/modules/gdscript/gdscript_parser.h index f9a1c5a697..d092a2a5e9 100644 --- a/modules/gdscript/gdscript_parser.h +++ b/modules/gdscript/gdscript_parser.h @@ -1055,12 +1055,12 @@ public: HashMap<StringName, int> locals_indices; FunctionNode *parent_function = nullptr; - ForNode *parent_for = nullptr; IfNode *parent_if = nullptr; bool has_return = false; bool has_continue = false; bool has_unreachable_code = false; // Just so warnings aren't given more than once per block. + bool is_loop = false; bool has_local(const StringName &p_name) const; const Local &get_local(const StringName &p_name) const; |