- handle empty command names when getting key binds

See https://github.com/Realm667/WolfenDoom/issues/498
This commit is contained in:
alexey.lysiuk 2021-04-19 18:09:20 +03:00
parent de0361842f
commit 4bcea0ab78

View file

@ -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)