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 @@ -280,7 +280,7 @@ void OpenContain::addToContain( Object *rider )
280280
281281 // TheSuperHackers @bugfix Stubbjax 06/02/2026 Always ensure interacting objects are alive.
282282 // This prevents undefined behaviour if a unit dies and enters a container on the same frame.
283- if (rider->isDestroyed () || getObject ()-> isDestroyed () )
283+ if (rider->isDestroyed ())
284284 return ;
285285
286286#if defined(RTS_DEBUG)
Original file line number Diff line number Diff line change @@ -295,7 +295,7 @@ void OpenContain::addToContain( Object *rider )
295295
296296 // TheSuperHackers @bugfix Stubbjax 06/02/2026 Always ensure interacting objects are alive.
297297 // This prevents undefined behaviour if a unit dies and enters a container on the same frame.
298- if (rider->isDestroyed () || getObject ()-> isDestroyed () )
298+ if (rider->isDestroyed ())
299299 return ;
300300
301301 Drawable *riderDraw = rider->getDrawable ();
You can’t perform that action at this time.
0 commit comments