Verify a player is assigned to the key before checking L / R

This commit is contained in:
TwistedUmbrella 2014-01-27 01:28:23 -05:00
parent cd96097c58
commit e48ee7069a
1 changed files with 1 additions and 1 deletions

View File

@ -520,7 +520,7 @@ public class GL2JNIActivity extends Activity {
playerNum = -1;
}
if (playerNum != -1) {
if (playerNum != null && playerNum != -1) {
float x = -1, y = -1;
String[] players = getResources().getStringArray(R.array.controllers);
String id = "_" + players[playerNum].substring(