Core: Corrected NULL usage, it should only be used with pointers, not integers
This commit is contained in:
@@ -369,7 +369,7 @@ void BattlegroundSA::Update(uint32 diff)
|
||||
RoundScores[1].winner = (Attackers == TEAM_ALLIANCE) ? TEAM_HORDE : TEAM_ALLIANCE;
|
||||
|
||||
if (RoundScores[0].time == RoundScores[1].time)
|
||||
EndBattleground(NULL);
|
||||
EndBattleground(0);
|
||||
else if (RoundScores[0].time < RoundScores[1].time)
|
||||
EndBattleground(RoundScores[0].winner == TEAM_ALLIANCE ? ALLIANCE : HORDE);
|
||||
else
|
||||
@@ -829,7 +829,7 @@ void BattlegroundSA::EventPlayerUsedGO(Player* Source, GameObject* object)
|
||||
}
|
||||
|
||||
if (RoundScores[0].time == RoundScores[1].time)
|
||||
EndBattleground(NULL);
|
||||
EndBattleground(0);
|
||||
else if (RoundScores[0].time < RoundScores[1].time)
|
||||
EndBattleground(RoundScores[0].winner == TEAM_ALLIANCE ? ALLIANCE : HORDE);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user