Skip to content

Commit e616d82

Browse files
authored
fix(logic): Fix unexpected return in GameLogic::logicMessageDispatcher's switch case MSG_CANCEL_UNIT_CREATE (#1881)
1 parent abd092c commit e616d82

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Generals/Code/GameEngine/Source/GameLogic/System/GameLogicDispatch.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1387,7 +1387,7 @@ void GameLogic::logicMessageDispatcher( GameMessage *msg, void *userData )
13871387
// get the unit production interface
13881388
ProductionUpdateInterface *pu = producer->getProductionUpdateInterface();
13891389
if( pu == NULL )
1390-
return;
1390+
break;
13911391

13921392
// cancel the production
13931393
pu->cancelUnitCreate( productionID );

GeneralsMD/Code/GameEngine/Source/GameLogic/System/GameLogicDispatch.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1415,7 +1415,7 @@ void GameLogic::logicMessageDispatcher( GameMessage *msg, void *userData )
14151415
// get the unit production interface
14161416
ProductionUpdateInterface *pu = producer->getProductionUpdateInterface();
14171417
if( pu == NULL )
1418-
return;
1418+
break;
14191419

14201420
// cancel the production
14211421
pu->cancelUnitCreate( productionID );

0 commit comments

Comments
 (0)