Skip to content

Commit bea27c1

Browse files
[GEN][ZH] Fix wrong class member set to INVALID_DRAWABLE_ID in ParticleUplinkCannonUpdate::createGroundToOrbitLaser() (#729)
Co-authored-by: Helmut Buhler <buhler@8gadgetpack.net>
1 parent dc0ff50 commit bea27c1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,8 @@ void ParticleUplinkCannonUpdate::createGroundToOrbitLaser( UnsignedInt growthFra
870870
if( beam )
871871
{
872872
TheGameClient->destroyDrawable( beam );
873-
m_orbitToTargetBeamID = INVALID_DRAWABLE_ID;
873+
// TheSuperHackers @fix helmutbuhler 19/04/2025 Invalidate the relevant drawable ID.
874+
m_groundToOrbitBeamID = INVALID_DRAWABLE_ID;
874875
}
875876

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

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -942,7 +942,8 @@ void ParticleUplinkCannonUpdate::createGroundToOrbitLaser( UnsignedInt growthFra
942942
if( beam )
943943
{
944944
TheGameClient->destroyDrawable( beam );
945-
m_orbitToTargetBeamID = INVALID_DRAWABLE_ID;
945+
// TheSuperHackers @fix helmutbuhler 19/04/2025 Invalidate the relevant drawable ID.
946+
m_groundToOrbitBeamID = INVALID_DRAWABLE_ID;
946947
}
947948

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

0 commit comments

Comments
 (0)