From c82c1c5d7ff145ccf60592ad5800abed5ea6b4dc Mon Sep 17 00:00:00 2001 From: klei1984 <53688147+klei1984@users.noreply.github.com> Date: Sun, 29 Sep 2024 13:48:39 +0200 Subject: [PATCH] Fixed defect 225. --- src/units_manager.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/units_manager.cpp b/src/units_manager.cpp index a4d654f..d6a8aa8 100644 --- a/src/units_manager.cpp +++ b/src/units_manager.cpp @@ -5560,7 +5560,9 @@ void UnitsManager_BuildClearing(UnitInfo* unit, bool mode) { UnitsManager_RemoveConnections(unit); if (unit->GetUnitType() == RESEARCH) { - ResearchMenu_UpdateResearchProgress(unit->team, unit->research_topic, -1); + if (unit->GetOrder() == ORDER_POWER_ON && unit->GetOrderState() != ORDER_STATE_INIT) { + ResearchMenu_UpdateResearchProgress(unit->team, unit->research_topic, -1); + } } if (unit->GetUnitType() == GREENHSE) {