From 00cea97ce7f5c3d4bd8baf8d5397e00eb9fb005b Mon Sep 17 00:00:00 2001 From: Mark Chandler Date: Mon, 1 Dec 2025 13:38:00 -0800 Subject: [PATCH] fix crash when waypoint has not links --- .../GameLogic/Object/Update/ParticleUplinkCannonUpdate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Update/ParticleUplinkCannonUpdate.cpp b/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Update/ParticleUplinkCannonUpdate.cpp index 2cbc55aad88..5c17cc24bb6 100644 --- a/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Update/ParticleUplinkCannonUpdate.cpp +++ b/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Update/ParticleUplinkCannonUpdate.cpp @@ -577,7 +577,7 @@ UpdateSleepTime ParticleUplinkCannonUpdate::update() if( m_scriptedWaypointMode ) { Waypoint *way = TheTerrainLogic->getWaypointByID( m_nextDestWaypointID ); - if( way ) + if( way && way->getNumLinks() ) { //Advance to the next waypoint. Int linkCount = way->getNumLinks();