summaryrefslogtreecommitdiff
path: root/src/hotkeys.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/hotkeys.cpp')
-rw-r--r--src/hotkeys.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hotkeys.cpp b/src/hotkeys.cpp
index 9411887ea..9f323bc28 100644
--- a/src/hotkeys.cpp
+++ b/src/hotkeys.cpp
@@ -260,7 +260,7 @@ HotkeyList::HotkeyList(const char *ini_group, Hotkey *items, GlobalHotkeyHandler
HotkeyList::~HotkeyList()
{
- _hotkey_lists->Erase(_hotkey_lists->Find(this));
+ _hotkey_lists->erase(std::find(_hotkey_lists->begin(), _hotkey_lists->end(), this));
}
/**