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:
svdijk 2014-09-20 14:27:32 +00:00
parent 675ee2a2fe
commit 58f607c014

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)