From b11fba3280bf110eddd97657462d454948019bfa Mon Sep 17 00:00:00 2001 From: Lixfel Date: Mon, 10 Feb 2020 21:34:24 +0100 Subject: [PATCH] Hotfix NPE Signed-off-by: Lixfel --- .../src/de/steamwar/fightsystem/fight/FightTeam.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FightSystem_Main/src/de/steamwar/fightsystem/fight/FightTeam.java b/FightSystem_Main/src/de/steamwar/fightsystem/fight/FightTeam.java index eba1c81..a8e6754 100644 --- a/FightSystem_Main/src/de/steamwar/fightsystem/fight/FightTeam.java +++ b/FightSystem_Main/src/de/steamwar/fightsystem/fight/FightTeam.java @@ -186,7 +186,7 @@ public class FightTeam implements IFightTeam{ public void setLeader(FightPlayer leader) { this.leader = leader; - if(ready) + if(ready && leader != null) setReady(false); if (leader == null){