File tree Expand file tree Collapse file tree
GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Contain
Generals/Code/GameEngine/Source/GameLogic/Object/Contain Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -278,6 +278,12 @@ void OpenContain::addToContain( Object *rider )
278278 if ( rider == nullptr )
279279 return ;
280280
281+ // TheSuperHackers @bugfix Stubbjax 06/02/2026 Ensure the rider is not destroyed to prevent a
282+ // likely crash if it enters the container on the same frame. If this occurs with an unpatched
283+ // client present in a match, the game has a small chance to mismatch.
284+ if (rider->isDestroyed ())
285+ return ;
286+
281287#if defined(RTS_DEBUG)
282288 if ( !isValidContainerFor ( rider, false ) )
283289 {
Original file line number Diff line number Diff line change @@ -293,6 +293,12 @@ void OpenContain::addToContain( Object *rider )
293293 if ( rider == nullptr )
294294 return ;
295295
296+ // TheSuperHackers @bugfix Stubbjax 06/02/2026 Ensure the rider is not destroyed to prevent a
297+ // likely crash if it enters the container on the same frame. If this occurs with an unpatched
298+ // client present in a match, the game has a small chance to mismatch.
299+ if (rider->isDestroyed ())
300+ return ;
301+
296302 Drawable *riderDraw = rider->getDrawable ();
297303 Bool wasSelected = FALSE ;
298304 if ( riderDraw && riderDraw->isSelected () )
You can’t perform that action at this time.
0 commit comments