Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Generals/Code/GameEngine/Source/GameLogic/AI/AIStates.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6272,7 +6272,12 @@ StateReturnType AIExitState::update()
//GS. The goal of unified ExitInterfaces dies a horrible death. I can't ask Object for the exit,
// as removeFromContain is only in the Contain type. I'm splitting the names in shame.
ExitInterface* goalExitInterface = goal->getContain() ? goal->getContain()->getContainExitInterface() : nullptr;
#if RETAIL_COMPATIBLE_CRC
if( goalExitInterface == nullptr )
#else
// TheSuperHackers @bugfix Stubbjax 03/05/2026 Stop trying to exit if the container is dead, as we are already ejected.
if (goalExitInterface == nullptr || goal->isEffectivelyDead())
Comment thread
xezon marked this conversation as resolved.
Outdated
Comment thread
xezon marked this conversation as resolved.
Outdated
#endif
return STATE_FAILURE;

if( goalExitInterface->isExitBusy() )
Expand Down
5 changes: 5 additions & 0 deletions GeneralsMD/Code/GameEngine/Source/GameLogic/AI/AIStates.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6484,7 +6484,12 @@ StateReturnType AIExitState::update()
//GS. The goal of unified ExitInterfaces dies a horrible death. I can't ask Object for the exit,
// as removeFromContain is only in the Contain type. I'm splitting the names in shame.
ExitInterface* goalExitInterface = goal->getContain() ? goal->getContain()->getContainExitInterface() : nullptr;
#if RETAIL_COMPATIBLE_CRC
if( goalExitInterface == nullptr )
#else
// TheSuperHackers @bugfix Stubbjax 03/05/2026 Stop trying to exit if the container is dead, as we are already ejected.
if (goalExitInterface == nullptr || goal->isEffectivelyDead())
#endif
return STATE_FAILURE;

if( goalExitInterface->isExitBusy() )
Expand Down
Loading