mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
keys.c Key_ConsoleBindable(): add sanity check
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1043 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
db221199ee
commit
4ada06645b
1 changed files with 3 additions and 0 deletions
|
@ -1140,5 +1140,8 @@ Key_ConsoleBindable
|
|||
*/
|
||||
qboolean Key_ConsoleBindable(int key)
|
||||
{
|
||||
if (key < 0 || key > 255)
|
||||
return false;
|
||||
|
||||
return ((key_dest == key_console || (key_dest == key_game && con_forcedup)) && !consolekeys[key]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue