Skip to content

Commit

Permalink
Merge pull request godotengine#36959 from akien-mga/enginedebugger-Ws…
Browse files Browse the repository at this point in the history
…hadow=local

Fix -Wshadow=local warning in EngineDebugger
  • Loading branch information
Faless authored Mar 10, 2020
2 parents 1500e40 + e1c3c6b commit 002d821
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/debugger/engine_debugger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,16 +146,16 @@ void EngineDebugger::initialize(const String &p_uri, bool p_skip_breakpoints, Ve
return;

// There is a debugger, parse breakpoints.
ScriptDebugger *script_debugger = singleton->get_script_debugger();
script_debugger->set_skip_breakpoints(p_skip_breakpoints);
ScriptDebugger *singleton_script_debugger = singleton->get_script_debugger();
singleton_script_debugger->set_skip_breakpoints(p_skip_breakpoints);

for (int i = 0; i < p_breakpoints.size(); i++) {

String bp = p_breakpoints[i];
int sp = bp.find_last(":");
ERR_CONTINUE_MSG(sp == -1, "Invalid breakpoint: '" + bp + "', expected file:line format.");

script_debugger->insert_breakpoint(bp.substr(sp + 1, bp.length()).to_int(), bp.substr(0, sp));
singleton_script_debugger->insert_breakpoint(bp.substr(sp + 1, bp.length()).to_int(), bp.substr(0, sp));
}
}

Expand Down

0 comments on commit 002d821

Please sign in to comment.