improved boundary checking for previous bugfix

This commit is contained in:
punkrockguy318 2010-02-17 06:00:41 +00:00
parent 1bb4c8f53e
commit 11298ff1a5
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ static int
_keyonly(int a)
{
// check for valid key
if(a > 350 || a < 0)
if(a > SDLK_LAST+1 || a < 0)
return(0);
if(g_keyState[a]) {
if(!keyonce[a]) {