mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 15:31:39 +00:00
keys.c Key_Event(): add sanity check
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1038 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
b7857441ab
commit
b5628dbe2f
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