Core/Battlegrounds: Fixed loading StartMaxDist

This commit is contained in:
Shauren
2012-11-23 23:53:36 +01:00
parent d2063d2fb3
commit bc95305d57

View File

@@ -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()];