Skip to content

Commit 9a95abb

Browse files
committed
[GEN][ZH] Fix deletion of leftover production queue items when ProductionUpdate object is destroyed. (#623)
1 parent eec8a0d commit 9a95abb

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Generals/Code/GameEngine/Source/GameLogic/Object/Update/ProductionUpdate.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,8 @@ ProductionUpdate::~ProductionUpdate( void )
217217

218218
production = m_productionQueue;
219219
removeFromProductionQueue( production );
220+
// TheSuperHackers @fix Mauller 13/04/2025 Delete instance of production item.
221+
production->deleteInstance();
220222

221223
} // end while
222224

GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Update/ProductionUpdate.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,8 @@ ProductionUpdate::~ProductionUpdate( void )
218218

219219
production = m_productionQueue;
220220
removeFromProductionQueue( production );
221+
// TheSuperHackers @fix Mauller 13/04/2025 Delete instance of production item.
222+
production->deleteInstance();
221223

222224
} // end while
223225

0 commit comments

Comments
 (0)