diff options
Diffstat (limited to 'src/server/game/Battlegrounds/BattlegroundMgr.cpp')
-rw-r--r-- | src/server/game/Battlegrounds/BattlegroundMgr.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/game/Battlegrounds/BattlegroundMgr.cpp b/src/server/game/Battlegrounds/BattlegroundMgr.cpp index 7afa22a5ccd..b71c45294eb 100644 --- a/src/server/game/Battlegrounds/BattlegroundMgr.cpp +++ b/src/server/game/Battlegrounds/BattlegroundMgr.cpp @@ -543,9 +543,9 @@ void BattlegroundMgr::LoadBattlegroundTemplates() if (bgTemplate.Id != BATTLEGROUND_AA && bgTemplate.Id != BATTLEGROUND_RB) { uint32 startId = fields[5].GetUInt32(); - if (WorldSafeLocsEntry const* start = sWorldSafeLocsStore.LookupEntry(startId)) + if (WorldSafeLocsEntry const* start = sObjectMgr->GetWorldSafeLoc(startId)) { - bgTemplate.StartLocation[TEAM_ALLIANCE].Relocate(start->Loc.X, start->Loc.Y, start->Loc.Z, (start->Facing * M_PI) / 180); + bgTemplate.StartLocation[TEAM_ALLIANCE].Relocate(start->Loc); } else { @@ -554,9 +554,9 @@ void BattlegroundMgr::LoadBattlegroundTemplates() } startId = fields[6].GetUInt32(); - if (WorldSafeLocsEntry const* start = sWorldSafeLocsStore.LookupEntry(startId)) + if (WorldSafeLocsEntry const* start = sObjectMgr->GetWorldSafeLoc(startId)) { - bgTemplate.StartLocation[TEAM_HORDE].Relocate(start->Loc.X, start->Loc.Y, start->Loc.Z, (start->Facing * M_PI) / 180); + bgTemplate.StartLocation[TEAM_HORDE].Relocate(start->Loc); } else { |