Merge pull request #732 from Learath2/dd_pr_bindfix

Missed a case. Fixes #730
This commit is contained in:
Dennis Felsing 2017-04-13 01:13:24 +02:00 committed by GitHub
commit 72e9571d57

View file

@ -98,7 +98,7 @@ const char *CBinds::GetKey(const char *pBindStr)
for(int KeyId = 0; KeyId < KEY_LAST; KeyId++)
{
const char *pBind = Get(KeyId);
if(!pBind[0])
if(!pBind)
continue;
if(str_comp(pBind, pBindStr) == 0)