aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2012-11-23 23:53:36 +0100
committerShauren <shauren.trinity@gmail.com>2012-11-23 23:53:36 +0100
commitbc95305d579e7dd27830440238a8fa6b986d2cde (patch)
tree101877f83ffffd104ac81a0ffa5ef858a37c1f0a
parentd2063d2fb3df1e5a19a957cb7bda3bcbff3a6950 (diff)
Core/Battlegrounds: Fixed loading StartMaxDist
-rwxr-xr-xsrc/server/game/Battlegrounds/BattlegroundMgr.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/server/game/Battlegrounds/BattlegroundMgr.cpp b/src/server/game/Battlegrounds/BattlegroundMgr.cpp
index 0604cadd5ee..11a7cf14e73 100755
--- a/src/server/game/Battlegrounds/BattlegroundMgr.cpp
+++ b/src/server/game/Battlegrounds/BattlegroundMgr.cpp
@@ -700,8 +700,7 @@ void BattlegroundMgr::CreateInitialBattlegrounds()
data.MaxPlayersPerTeam = fields[2].GetUInt16();
data.LevelMin = fields[3].GetUInt8();
data.LevelMax = fields[4].GetUInt8();
- uint8 spawn = fields[9].GetUInt8();
- data.StartMaxDist = float(spawn * spawn);
+ data.StartMaxDist = fields[9].GetFloat();
data.scriptId = sObjectMgr->GetScriptId(fields[11].GetCString());
data.BattlegroundName = bl->name[sWorld->GetDefaultDbcLocale()];