Code:
event bool [B]CheckEndGame[/B] (PlayerReplicationInfo [B]Winner[/B], string [B]Reason[/B])
{
if (Reason ~= "TimeLimit")
{
if (!bOvertimeBroadcast)
{
bOverTimeBroadcast = true;
}
return false;
}
Super.CheckEndGame (Winner, Reason);
}
What's the fix for the bug?
return Super.CheckEndGame (Winner, Reason);
Now, if "return false" were to be omitted, the compiler would give the typical "Warning, CheckEndGame: Missing return value", but it just stops checking for return statements after it finds one; it doesn't check whether the last statement of a function has a return statement. (Is this check more strict in the UDK version of the compiler, perhaps?)
Now, if "return false" were to be omitted, the compiler would give the typical "Warning, CheckEndGame: Missing return value", but it just stops checking for return statements after it finds one; it doesn't check whether the last statement of a function has a return statement. (Is this check more strict in the UDK version of the compiler, perhaps?)