From 34007531dfb65fafd55d2fefc52a56627b3866b7 Mon Sep 17 00:00:00 2001 From: extremeCrazyCoder Date: Mon, 24 Aug 2020 19:57:46 +0200 Subject: [PATCH] only update troops if there was information gathered --- .../main/java/de/tor/tribes/util/troops/TroopsManager.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Core/src/main/java/de/tor/tribes/util/troops/TroopsManager.java b/Core/src/main/java/de/tor/tribes/util/troops/TroopsManager.java index a58d2f5cf..8df9047ab 100644 --- a/Core/src/main/java/de/tor/tribes/util/troops/TroopsManager.java +++ b/Core/src/main/java/de/tor/tribes/util/troops/TroopsManager.java @@ -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())); + } } } }