From 7068815cb73230a2aa41986b3fdd40d566063050 Mon Sep 17 00:00:00 2001 From: ALONSO Laurent Date: Sat, 16 Jul 2022 13:54:59 +0200 Subject: [PATCH] boe: timer with time<=0 are empty timer --- src/universe/party.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/universe/party.cpp b/src/universe/party.cpp index bbf38d51..6055c772 100644 --- a/src/universe/party.cpp +++ b/src/universe/party.cpp @@ -215,6 +215,9 @@ void cParty::import_legacy(legacy::party_record_type& old, cUniverse& univ){ for(short i = 0; i < 30; i++){ boats[i].import_legacy(old.boats[i]); horses[i].import_legacy(old.horses[i]); + // boe: timer with time<=0 are empty timer + if (old.party_event_timers[i] <= 0) + continue; cTimer t; t.time = old.party_event_timers[i]; t.node_type = old.global_or_town[i] ? eSpecCtxType::TOWN : eSpecCtxType::SCEN;