Fix accessing an negative array index.
The problem was introduced in 365714aeab
.
Fendrin please review the fix.
This commit is contained in:
parent
365714aeab
commit
ff8a3916cf
1 changed files with 1 additions and 1 deletions
|
@ -515,7 +515,7 @@ manager::manager()
|
|||
|
||||
void manager::init()
|
||||
{
|
||||
for (size_t i = 0; hotkey_list_[i-1].id != hotkey::HOTKEY_NULL; ++i) {
|
||||
for (size_t i = 0; hotkey_list_[i].id != hotkey::HOTKEY_NULL; ++i) {
|
||||
command_map_[hotkey_list_[i].command] = i;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue