Fix a crash that can occur when using Back to Turn.
This commit is contained in:
parent
17ea7cd2c2
commit
fb8dd0f27b
1 changed files with 1 additions and 1 deletions
|
@ -405,7 +405,7 @@ wml_hotkey_record::wml_hotkey_record(const std::string& id, const t_string& desc
|
|||
}
|
||||
|
||||
// Record the cleanup handler
|
||||
cleanup_ = [i = iter] { registered_hotkeys.erase(i); };
|
||||
cleanup_ = [id] { registered_hotkeys.erase(id); };
|
||||
}
|
||||
|
||||
wml_hotkey_record::~wml_hotkey_record()
|
||||
|
|
Loading…
Add table
Reference in a new issue