Skip to content

Commit 02a1434

Browse files
committed
[GEN][ZH] Delete W3DTankDraw particle system on object destroy. (#623)
1 parent 118574e commit 02a1434

File tree

2 files changed

+8
-0
lines changed
  • GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/Drawable/Draw
  • Generals/Code/GameEngineDevice/Source/W3DDevice/GameClient/Drawable/Draw

2 files changed

+8
-0
lines changed

Generals/Code/GameEngineDevice/Source/W3DDevice/GameClient/Drawable/Draw/W3DTankDraw.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,10 @@ void W3DTankDraw::createEmitters( void )
163163
//-------------------------------------------------------------------------------------------------
164164
W3DTankDraw::~W3DTankDraw()
165165
{
166+
167+
// TheSuperHackers @fix Mauller 16/04/2025 Delete particle systems
168+
tossEmitters();
169+
166170
for (Int i=0; i<MAX_TREADS_PER_TANK; i++)
167171
if (m_treads[i].m_robj)
168172
REF_PTR_RELEASE(m_treads[i].m_robj);

GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/Drawable/Draw/W3DTankDraw.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,10 @@ void W3DTankDraw::createEmitters( void )
163163
//-------------------------------------------------------------------------------------------------
164164
W3DTankDraw::~W3DTankDraw()
165165
{
166+
167+
// TheSuperHackers @fix Mauller 16/04/2025 Delete particle systems
168+
tossEmitters();
169+
166170
for (Int i=0; i<MAX_TREADS_PER_TANK; i++)
167171
if (m_treads[i].m_robj)
168172
REF_PTR_RELEASE(m_treads[i].m_robj);

0 commit comments

Comments
 (0)