diff options
Diffstat (limited to 'src/game/OutdoorPvPHP.cpp')
-rw-r--r-- | src/game/OutdoorPvPHP.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/game/OutdoorPvPHP.cpp b/src/game/OutdoorPvPHP.cpp index 4adb9541053..ef7c9a20594 100644 --- a/src/game/OutdoorPvPHP.cpp +++ b/src/game/OutdoorPvPHP.cpp @@ -36,7 +36,7 @@ const uint32 HP_LANG_CAPTURE_H[HP_TOWER_NUM] = {LANG_OPVP_HP_CAPTURE_BROKENHILL_ OPvPCapturePointHP::OPvPCapturePointHP(OutdoorPvP *pvp,OutdoorPvPHPTowerType type) : OPvPCapturePoint(pvp), m_TowerType(type) { - AddCapturePoint(HPCapturePoints[type].entry, + SetCapturePointData(HPCapturePoints[type].entry, HPCapturePoints[type].map, HPCapturePoints[type].x, HPCapturePoints[type].y, @@ -72,11 +72,11 @@ bool OutdoorPvPHP::SetupOutdoorPvP() for(int i = 0; i < OutdoorPvPHPBuffZonesNum; ++i) RegisterZone(OutdoorPvPHPBuffZones[i]); - m_capturePoints.push_back(new OPvPCapturePointHP(this,HP_TOWER_BROKEN_HILL)); + AddCapturePoint(new OPvPCapturePointHP(this,HP_TOWER_BROKEN_HILL)); - m_capturePoints.push_back(new OPvPCapturePointHP(this,HP_TOWER_OVERLOOK)); + AddCapturePoint(new OPvPCapturePointHP(this,HP_TOWER_OVERLOOK)); - m_capturePoints.push_back(new OPvPCapturePointHP(this,HP_TOWER_STADIUM)); + AddCapturePoint(new OPvPCapturePointHP(this,HP_TOWER_STADIUM)); return true; } @@ -159,7 +159,7 @@ void OutdoorPvPHP::FillInitialWorldStates(WorldPacket &data) data << uint32(HP_UI_TOWER_SLIDER_N) << uint32(100); for(OPvPCapturePointMap::iterator itr = m_capturePoints.begin(); itr != m_capturePoints.end(); ++itr) { - (*itr)->FillInitialWorldStates(data); + itr->second->FillInitialWorldStates(data); } } |