diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2020-09-10 22:02:44 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-10 22:02:44 +0200 |
| commit | beb9ebcda00ac32a1dc8ec338aa61d7f0b03edc5 (patch) | |
| tree | 7ab5b8369ef1e72dc698564778597ddc38362666 /editor/plugins/script_editor_plugin.cpp | |
| parent | d782405bcfa03b63de78927ce077f495ae285d11 (diff) | |
| parent | c0da97d29cbabcce261ddc948df099f0ecc6ee47 (diff) | |
| download | redot-engine-beb9ebcda00ac32a1dc8ec338aa61d7f0b03edc5.tar.gz | |
Merge pull request #40973 from Paulb23/code_edit
Add CodeEdit and TextEdit gutter system
Diffstat (limited to 'editor/plugins/script_editor_plugin.cpp')
| -rw-r--r-- | editor/plugins/script_editor_plugin.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index 20eef1cebd..be8ddf789b 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -1585,15 +1585,14 @@ void ScriptEditor::get_breakpoints(List<String> *p_breakpoints) { continue; } - List<int> bpoints; - se->get_breakpoints(&bpoints); String base = script->get_path(); if (base.begins_with("local://") || base == "") { continue; } - for (List<int>::Element *E = bpoints.front(); E; E = E->next()) { - p_breakpoints->push_back(base + ":" + itos(E->get() + 1)); + Array bpoints = se->get_breakpoints(); + for (int j = 0; j < bpoints.size(); j++) { + p_breakpoints->push_back(base + ":" + itos((int)bpoints[j] + 1)); } } } |
