Fix UB compilation

This commit is contained in:
Asdow
2024-11-09 16:46:39 +02:00
parent f99065d0c6
commit a81820d0d7
2 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -10876,11 +10876,11 @@ BOOLEAN CanMsgBoxForPlayerToBeNotifiedOfSomeoneElseInSector()
}
INT8 NumMercsOnPlayerTeam( )
UINT16 NumMercsOnPlayerTeam( )
{
INT32 cnt;
INT32 cnt;
SOLDIERTYPE *pSoldier;
UINT8 ubCount = 0;
UINT16 ubCount = 0;
cnt = gTacticalStatus.Team[ OUR_TEAM ].bFirstID;
+4 -4
View File
@@ -333,10 +333,10 @@ void SetMsgBoxForPlayerBeNotifiedOfSomeoneElseInSector();
void HandleDisplayingOfPlayerLostDialogue( );
// UTILITY FUNCTIONS
INT8 NumActiveAndConsciousTeamMembers( UINT8 ubTeam );
UINT8 NumEnemyInSector( );
UINT8 NumCapableEnemyInSector( );
INT8 NumMercsOnPlayerTeam( );
UINT16 NumActiveAndConsciousTeamMembers( UINT8 ubTeam );
UINT16 NumEnemyInSector( );
UINT16 NumCapableEnemyInSector( );
UINT16 NumMercsOnPlayerTeam( );
#endif
extern BOOLEAN sniperwarning;