mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
Fixed possible NPE in TurnMods.skipStep.
This commit is contained in:
parent
a9415db2e5
commit
3da3d1c875
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ public class TurnMods extends ArrayList<TurnMod> {
|
|||
while (it.hasPrevious()) {
|
||||
TurnMod turnMod = it.previous();
|
||||
if (turnMod.getSkipStep() != null) {
|
||||
if (turnMod.getPlayerId().equals(playerId)) {
|
||||
if (turnMod.getPlayerId() != null && turnMod.getPlayerId().equals(playerId)) {
|
||||
if (turnMod.getSkipStep() == step) {
|
||||
it.remove();
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue