Commit 7c3b3e67 authored by Dino Bollinger's avatar Dino Bollinger

Duke3D: prevent hash lookup on empty keybinds

This fixes #98
parent 94179a4d
......@@ -46,7 +46,7 @@ hashtable_t h_gamefuncs = { NUMGAMEFUNCTIONS<<1, NULL };
int32_t CONFIG_FunctionNameToNum(const char *func)
{
if (!func)
if (!func || func[0] == '\0')
return -1;
return hash_findcase(&h_gamefuncs, func);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment