Fix NULL dereference bug

This commit is contained in:
Michael Buckley 2019-11-03 08:09:43 -08:00
parent 0d87a035b8
commit 6fcfe8c3f8
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ bool SetKeyCode(int16 keyCode, S9xButtonCode buttonCode, int8 player, int16 *old
*oldButtonCode = (S9xButtonCode)keyCodes[keyCode].buttonCode;
}
if (*oldPlayer != NULL )
if (oldPlayer != NULL )
{
*oldPlayer = (S9xButtonCode)keyCodes[keyCode].player;
}