mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix crashbug in bind system
Restore old behavior around the bind's Get() function, return "" if there is no bind. Fixes #730.
This commit is contained in:
parent
38cd5e89a5
commit
1b88017fc5
|
@ -88,7 +88,7 @@ void CBinds::UnbindAll()
|
|||
|
||||
const char *CBinds::Get(int KeyID)
|
||||
{
|
||||
if(KeyID > 0 && KeyID < KEY_LAST)
|
||||
if(KeyID > 0 && KeyID < KEY_LAST && m_apKeyBindings[KeyID])
|
||||
return m_apKeyBindings[KeyID];
|
||||
return "";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue