mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-15 00:41:57 +00:00
- handle empty command names when getting key binds
See https://github.com/Realm667/WolfenDoom/issues/498
This commit is contained in:
parent
de0361842f
commit
4bcea0ab78
1 changed files with 5 additions and 0 deletions
|
@ -460,6 +460,11 @@ int FKeyBindings::GetKeysForCommand (const char *cmd, int *first, int *second)
|
|||
|
||||
*first = *second = c = i = 0;
|
||||
|
||||
if (cmd[0] == '\0')
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
while (i < NUM_KEYS && c < 2)
|
||||
{
|
||||
if (stricmp (cmd, Binds[i]) == 0)
|
||||
|
|
Loading…
Reference in a new issue