Skip to content

Commit

Permalink
Fixed defect 225.
Browse files Browse the repository at this point in the history
  • Loading branch information
klei1984 committed Sep 29, 2024
1 parent 3359194 commit c82c1c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/units_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c82c1c5

Please sign in to comment.