Better sector null checks

This commit is contained in:
Anuken
2020-03-01 12:15:38 -05:00
parent 51cec64118
commit 3ed5282e14
7 changed files with 14 additions and 12 deletions

View File

@@ -80,7 +80,7 @@ public class GameOverDialog extends FloatingDialog{
}
}
if(state.isCampaign()){
if(state.hasSector()){
RankResult result = state.stats.calculateRank(state.getSector(), state.launched);
t.add(Core.bundle.format("stat.rank", result.rank + result.modifier));
t.row();