aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Garrison/GarrisonMgr.cpp
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2016-02-06 17:53:37 +0100
committerShauren <shauren.trinity@gmail.com>2016-05-20 23:48:48 +0200
commit885d9b53c38662e00e3b4977b82e9cf36d197f94 (patch)
tree913178bb8bdc6d4b9d722202b3255733329556d0 /src/server/game/Garrison/GarrisonMgr.cpp
parent41ae38d94d627f1945dc1aed46837068b83ed654 (diff)
Core/DataStores: Updated dbc/db2 to 7.0.1.20994
Diffstat (limited to 'src/server/game/Garrison/GarrisonMgr.cpp')
-rw-r--r--src/server/game/Garrison/GarrisonMgr.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Garrison/GarrisonMgr.cpp b/src/server/game/Garrison/GarrisonMgr.cpp
index e2cba691910..c07d9a82c45 100644
--- a/src/server/game/Garrison/GarrisonMgr.cpp
+++ b/src/server/game/Garrison/GarrisonMgr.cpp
@@ -33,7 +33,7 @@ GarrisonMgr& GarrisonMgr::Instance()
void GarrisonMgr::Initialize()
{
for (auto itr = sGarrSiteLevelPlotInstStore.begin(); itr != sGarrSiteLevelPlotInstStore.end(); ++itr)
- _garrisonPlotInstBySiteLevel[itr->GarrSiteLevelID].push_back(std::make_pair(itr.Key(), itr.Value()));
+ _garrisonPlotInstBySiteLevel[itr->GarrSiteLevelID].push_back(std::make_pair(itr.ID(), itr.Data()));
for (GameObjectsEntry const* gameObject : sGameObjectsStore)
if (gameObject->Type == GAMEOBJECT_TYPE_GARRISON_PLOT)
@@ -46,7 +46,7 @@ void GarrisonMgr::Initialize()
_garrisonBuildingPlotInstances[MAKE_PAIR64(buildingPlotInst->GarrBuildingID, buildingPlotInst->GarrSiteLevelPlotInstID)] = buildingPlotInst->ID;
for (auto itr = sGarrBuildingStore.begin(); itr != sGarrBuildingStore.end(); ++itr)
- _garrisonBuildingsByType[itr->Type].push_back(itr.Key());
+ _garrisonBuildingsByType[itr->Type].push_back(itr.ID());
for (GarrFollowerXAbilityEntry const* followerAbility : sGarrFollowerXAbilityStore)
{