diff options
| author | Lightning_A <aaronjrecord@gmail.com> | 2021-07-03 16:17:03 -0600 |
|---|---|---|
| committer | Aaron Record <aaronjrecord@gmail.com> | 2021-11-23 18:58:57 -0700 |
| commit | e078f970db0e72bcc665d714416e6fc74e8434a6 (patch) | |
| tree | 21fb39b40de2674a99018d88e142e6f0196c68b0 /scene/gui/popup_menu.cpp | |
| parent | 5efe80f3085c8c6451363fe4c743bf3d7fc20b6c (diff) | |
| download | redot-engine-e078f970db0e72bcc665d714416e6fc74e8434a6.tar.gz | |
Rename `remove()` to `remove_at()` when removing by index
Diffstat (limited to 'scene/gui/popup_menu.cpp')
| -rw-r--r-- | scene/gui/popup_menu.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/popup_menu.cpp b/scene/gui/popup_menu.cpp index 7e9b545776..2e854abb76 100644 --- a/scene/gui/popup_menu.cpp +++ b/scene/gui/popup_menu.cpp @@ -1403,7 +1403,7 @@ void PopupMenu::remove_item(int p_idx) { _unref_shortcut(items[p_idx].shortcut); } - items.remove(p_idx); + items.remove_at(p_idx); control->update(); child_controls_changed(); } |
