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:
Sander van Dijk 2014-09-20 14:27:32 +00:00
parent b7857441ab
commit b5628dbe2f

View file

@ -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)