diff --git a/Generals/Code/GameEngine/Source/GameLogic/System/GameLogicDispatch.cpp b/Generals/Code/GameEngine/Source/GameLogic/System/GameLogicDispatch.cpp index 6c58b9aa53..485a2bbaed 100644 --- a/Generals/Code/GameEngine/Source/GameLogic/System/GameLogicDispatch.cpp +++ b/Generals/Code/GameEngine/Source/GameLogic/System/GameLogicDispatch.cpp @@ -1390,7 +1390,11 @@ void GameLogic::logicMessageDispatcher( GameMessage *msg, void *userData ) // get the unit production interface ProductionUpdateInterface *pu = producer->getProductionUpdateInterface(); if( pu == NULL ) +#if RETAIL_COMPATIBLE_CRC return; +#else + break; +#endif // cancel the production pu->cancelUnitCreate( productionID ); diff --git a/GeneralsMD/Code/GameEngine/Source/GameLogic/System/GameLogicDispatch.cpp b/GeneralsMD/Code/GameEngine/Source/GameLogic/System/GameLogicDispatch.cpp index 8b18e615d1..80085f5b25 100644 --- a/GeneralsMD/Code/GameEngine/Source/GameLogic/System/GameLogicDispatch.cpp +++ b/GeneralsMD/Code/GameEngine/Source/GameLogic/System/GameLogicDispatch.cpp @@ -1418,7 +1418,11 @@ void GameLogic::logicMessageDispatcher( GameMessage *msg, void *userData ) // get the unit production interface ProductionUpdateInterface *pu = producer->getProductionUpdateInterface(); if( pu == NULL ) +#if RETAIL_COMPATIBLE_CRC return; +#else + break; +#endif // cancel the production pu->cancelUnitCreate( productionID );