Skip to content
Permalink
Browse files

Server/Battleground: Initialize some missing member variables.

Signed-off-by: AriDEV <aridev666@gmail.com>
  • Loading branch information...
AriDEV committed Oct 30, 2019
1 parent bdb94a3 commit d722ebfbe66fd6fff5ed4c9ddf298d5615b788ca
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/server/game/Battlegrounds/Battleground.cpp
@@ -132,6 +132,7 @@ Battleground::Battleground()
m_ArenaType = 0;
m_IsArena = false;
m_Winner = 2;
m_StartDelayTime = 0;
m_StartTime = 0;
m_CountdownTimer = 0;
m_ResetStatTimer = 0;
@@ -155,6 +156,8 @@ Battleground::Battleground()
m_Map = NULL;
m_StartMaxDist = 0.0f;

ScriptId = 0;

m_TeamStartLocX[TEAM_ALLIANCE] = 0;
m_TeamStartLocX[TEAM_HORDE] = 0;

@@ -173,6 +176,9 @@ Battleground::Battleground()
m_ArenaTeamRatingChanges[TEAM_ALLIANCE] = 0;
m_ArenaTeamRatingChanges[TEAM_HORDE] = 0;

m_ArenaTeamMMR[TEAM_ALLIANCE] = 0;
m_ArenaTeamMMR[TEAM_HORDE] = 0;

m_BgRaids[TEAM_ALLIANCE] = NULL;
m_BgRaids[TEAM_HORDE] = NULL;

@@ -183,6 +189,7 @@ Battleground::Battleground()
m_TeamScores[TEAM_HORDE] = 0;

m_PrematureCountDown = false;
m_PrematureCountDownTimer = 0;

m_HonorMode = BG_NORMAL;

0 comments on commit d722ebf

Please sign in to comment.
You can’t perform that action at this time.