Skip to content

Commit 750c552

Browse files
Maullerhelmutbuhler
andcommitted
[GEN][ZH] Fix invalid drawable ID being set on m_orbitToTargetBeamID instead of m_groundToOrbitBeamID
Co-authored-by: Helmut Buhler <buhler@8gadgetpack.net>
1 parent 1597a1d commit 750c552

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,10 @@ void ParticleUplinkCannonUpdate::createGroundToOrbitLaser( UnsignedInt growthFra
870870
if( beam )
871871
{
872872
TheGameClient->destroyDrawable( beam );
873-
m_orbitToTargetBeamID = INVALID_DRAWABLE_ID;
873+
874+
// TheSuperHackers @fix helmutbuhler 19/04/2025
875+
// This originally mistakenly assigned to m_orbitToTargetBeamID and thus caused a leak.
876+
m_groundToOrbitBeamID = INVALID_DRAWABLE_ID;
874877
}
875878

876879
if( data->m_particleBeamLaserName.isNotEmpty() )

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -942,7 +942,10 @@ void ParticleUplinkCannonUpdate::createGroundToOrbitLaser( UnsignedInt growthFra
942942
if( beam )
943943
{
944944
TheGameClient->destroyDrawable( beam );
945-
m_orbitToTargetBeamID = INVALID_DRAWABLE_ID;
945+
946+
// TheSuperHackers @fix helmutbuhler 19/04/2025
947+
// This originally mistakenly assigned to m_orbitToTargetBeamID and thus caused a leak.
948+
m_groundToOrbitBeamID = INVALID_DRAWABLE_ID;
946949
}
947950

948951
if( data->m_particleBeamLaserName.isNotEmpty() )

0 commit comments

Comments
 (0)