diff --git a/src/engine/objects/PlayerCharacter.java b/src/engine/objects/PlayerCharacter.java index 36ed401e..194f6930 100644 --- a/src/engine/objects/PlayerCharacter.java +++ b/src/engine/objects/PlayerCharacter.java @@ -4561,7 +4561,8 @@ public class PlayerCharacter extends AbstractCharacter { this.setBounds(playerBounds); //assign enum values for restrictions - this.absRace = Enum.MonsterType.valueOf(this.getRace().getName().replace("-","")); + String race = this.getRace().getName().replace("-",""); + this.absRace = Enum.MonsterType.valueOf(race); if(this.promotionClass != null) this.absClass = Enum.PromoteType.valueOf(this.getPromotionClass().getName());