mirror of
https://github.com/godotengine/godot.git
synced 2025-10-25 02:43:29 +00:00
Rename remove() to remove_at() when removing by index
This commit is contained in:
parent
5efe80f308
commit
e078f970db
134 changed files with 323 additions and 323 deletions
|
|
@ -733,7 +733,7 @@ void ScriptEditor::_open_recent_script(int p_idx) {
|
|||
return;
|
||||
}
|
||||
|
||||
rc.remove(p_idx);
|
||||
rc.remove_at(p_idx);
|
||||
EditorSettings::get_singleton()->set_project_metadata("recent_files", "scripts", rc);
|
||||
_update_recent_scripts();
|
||||
_show_error_dialog(path);
|
||||
|
|
@ -785,7 +785,7 @@ void ScriptEditor::_close_tab(int p_idx, bool p_save, bool p_history_back) {
|
|||
|
||||
for (int i = 0; i < history.size(); i++) {
|
||||
if (history[i].control == tselected) {
|
||||
history.remove(i);
|
||||
history.remove_at(i);
|
||||
i--;
|
||||
history_pos--;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue