Fix crash that can occur after earning an achievement

This commit is contained in:
drdev
2014-10-23 00:30:18 +00:00
parent 4ea2f48e29
commit b565868ef0

View File

@@ -2067,7 +2067,7 @@ public class Player extends GameEntity implements Comparable<Player> {
}
public final RegisteredPlayer getRegisteredPlayer() {
return game.getMatch().getPlayers().get(game.getPlayers().indexOf(this));
return game.getMatch().getPlayers().get(game.getRegisteredPlayers().indexOf(this));
}
public final boolean isMindSlaved() {