Skip to content

Commit

Permalink
only update troops if there was information gathered
Browse files Browse the repository at this point in the history
  • Loading branch information
extremeCrazyCoder committed Aug 24, 2020
1 parent 1eeea1f commit 3400753
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -497,8 +497,11 @@ public void updateInformation(FightReport pReport) {
}
}
if(outwards.getState() == null || outwards.getState().getTime() < pReport.getTimestamp()) {
outwards.setTroops(pReport.getDefendersOnTheWay());
outwards.setState(new Date(pReport.getTimestamp()));
TroopAmountFixed defOTW = pReport.getDefendersOnTheWay();
if(defOTW != null && defOTW.containsInformation()) {
outwards.setTroops(defOTW);
outwards.setState(new Date(pReport.getTimestamp()));
}
}
}
}

0 comments on commit 3400753

Please sign in to comment.