Update Game Event Hook.cpp

This commit is contained in:
Asdow
2024-11-20 00:23:08 +02:00
parent a670aff29c
commit 235ddfa782
+3 -2
View File
@@ -255,9 +255,10 @@ BOOLEAN ExecuteStrategicEvent( STRATEGICEVENT *pEvent )
break; break;
case EVENT_ADDSOLDIER_TO_UPDATE_BOX: case EVENT_ADDSOLDIER_TO_UPDATE_BOX:
// if the grunt is currently active, add to update box // if the grunt is currently active, add to update box
if( Menptr[ pEvent->uiParam ].bActive ) SoldierID usID = pEvent->uiParam;
if( usID != NOBODY && usID->bActive )
{ {
AddSoldierToWaitingListQueue( &( Menptr[ pEvent->uiParam ] ) ); AddSoldierToWaitingListQueue( usID );
} }
break; break;
case EVENT_SET_MENU_REASON: case EVENT_SET_MENU_REASON: