Fix NullPointerException in Banzai refreshCounters

This commit is contained in:
Alejandro 2019-05-26 19:28:51 +03:00
parent ab65865d73
commit 8dda7e8111

View File

@ -405,6 +405,8 @@ public class BattleBanzaiGame extends Game
public void refreshCounters(GameTeamColors teamColors) public void refreshCounters(GameTeamColors teamColors)
{ {
if (!this.teams.containsKey(teamColors)) return;
int totalScore = this.teams.get(teamColors).getTotalScore(); int totalScore = this.teams.get(teamColors).getTotalScore();
THashMap<Integer, InteractionBattleBanzaiScoreboard> scoreBoards = this.room.getRoomSpecialTypes().getBattleBanzaiScoreboards(teamColors); THashMap<Integer, InteractionBattleBanzaiScoreboard> scoreBoards = this.room.getRoomSpecialTypes().getBattleBanzaiScoreboards(teamColors);