File frisk-1.3rc1-uninitialized.patch of Package frisk
--- aiClientMain.c
+++ aiClientMain.c
@@ -579,9 +579,9 @@
break;
case MSG_ENDOFMISSION:
- assert( iWinner >= -1 && iWinner < MAX_PLAYERS );
iWinner = pMessage->msgEndOfMission.iWinner;
+ assert( iWinner >= -1 && iWinner < MAX_PLAYERS );
if ( RISK_GetClientOfPlayer( iWinner ) == CLNT_GetThisClientID( ) )
{
if ( RISK_GetNumLivePlayers( ) <= 1 )
@@ -596,9 +596,9 @@
break;
case MSG_VICTORY:
- assert( iWinner >= -1 && iWinner < MAX_PLAYERS );
iWinner = pMessage->msgVictory.iWinner;
+ assert( iWinner >= -1 && iWinner < MAX_PLAYERS );
if ( RISK_GetClientOfPlayer( iWinner ) == CLNT_GetThisClientID( ) )
{
fGameStarted = FALSE;