You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Use range iterators for Map
This commit is contained in:
@@ -153,12 +153,12 @@ class GDScriptByteCodeGenerator : public GDScriptCodeGenerator {
|
||||
#endif
|
||||
locals.resize(current_locals);
|
||||
if (debug_stack) {
|
||||
for (Map<StringName, int>::Element *E = block_identifiers.front(); E; E = E->next()) {
|
||||
for (const KeyValue<StringName, int> &E : block_identifiers) {
|
||||
GDScriptFunction::StackDebug sd;
|
||||
sd.added = false;
|
||||
sd.identifier = E->key();
|
||||
sd.identifier = E.key;
|
||||
sd.line = current_line;
|
||||
sd.pos = E->get();
|
||||
sd.pos = E.value;
|
||||
stack_debug.push_back(sd);
|
||||
}
|
||||
block_identifiers = block_identifier_stack.back()->get();
|
||||
|
||||
Reference in New Issue
Block a user