Check for null

This commit is contained in:
Trent Hensler 2018-03-02 10:55:52 -08:00
parent acc41bf07a
commit 6af634d4e3
1 changed files with 6 additions and 1 deletions

View File

@ -113,6 +113,11 @@ public abstract class MemoryFPlayer implements FPlayer {
}
public Role getRole() {
// Hack to fix null roles..
if (role == null) {
this.role = Role.NORMAL;
}
return this.role;
}