1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

Merge pull request #77744 from dalexeev/gds-reset-block-locals-on-exit

GDScript: Reset local variables on exit from block
This commit is contained in:
Rémi Verschelde
2023-06-21 21:51:05 +02:00
8 changed files with 96 additions and 14 deletions

View File

@@ -1121,7 +1121,7 @@ public:
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 is_in_loop = false; // The block is nested in a loop (directly or indirectly).
bool has_local(const StringName &p_name) const;
const Local &get_local(const StringName &p_name) const;