Skip to content

Commit 2c9d9f3

Browse files
committed
[GEN][ZH] Fix deletion of leftover production queue items when ProductionUpdate object is destroyed.
1 parent 7f8b838 commit 2c9d9f3

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

+2
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

+2
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)