Verify a player is assigned to the key before checking L / R
This commit is contained in:
parent
cd96097c58
commit
e48ee7069a
|
@ -520,7 +520,7 @@ public class GL2JNIActivity extends Activity {
|
||||||
playerNum = -1;
|
playerNum = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (playerNum != -1) {
|
if (playerNum != null && playerNum != -1) {
|
||||||
float x = -1, y = -1;
|
float x = -1, y = -1;
|
||||||
String[] players = getResources().getStringArray(R.array.controllers);
|
String[] players = getResources().getStringArray(R.array.controllers);
|
||||||
String id = "_" + players[playerNum].substring(
|
String id = "_" + players[playerNum].substring(
|
||||||
|
|
Loading…
Reference in New Issue