mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-13 07:21:31 +00:00
keys.c Key_Event(): add sanity check
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1038 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
675ee2a2fe
commit
58f607c014
1 changed files with 3 additions and 0 deletions
|
@ -913,6 +913,9 @@ void Key_Event (int key, qboolean down)
|
|||
char *kb;
|
||||
char cmd[1024];
|
||||
|
||||
if (key < 0 || key > 255)
|
||||
return;
|
||||
|
||||
keydown[key] = down;
|
||||
|
||||
if (!down)
|
||||
|
|
Loading…
Reference in a new issue