diff options
author | Shauren <shauren.trinity@gmail.com> | 2016-05-30 23:49:35 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2016-05-30 23:49:35 +0200 |
commit | c95f4a507021bc2623f512f456fafe303f2c4766 (patch) | |
tree | fd902039644048455e28746c0cc3f4368bb6c99d /src/server/game/Garrison/Garrison.cpp | |
parent | 25d82b2c318be55f8f826f783934f89a35d6828c (diff) |
Core/GameObjects: Updated GameObjectTemplate to 7.0.3.21796
Diffstat (limited to 'src/server/game/Garrison/Garrison.cpp')
-rw-r--r-- | src/server/game/Garrison/Garrison.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Garrison/Garrison.cpp b/src/server/game/Garrison/Garrison.cpp index 2789978a7fe..468648da78c 100644 --- a/src/server/game/Garrison/Garrison.cpp +++ b/src/server/game/Garrison/Garrison.cpp @@ -745,9 +745,9 @@ GameObject* Garrison::Plot::CreateGameObject(Map* map, GarrisonFactionIndex fact } } - if (building->GetGoType() == GAMEOBJECT_TYPE_GARRISON_BUILDING && building->GetGOInfo()->garrisonBuilding.mapID) + if (building->GetGoType() == GAMEOBJECT_TYPE_GARRISON_BUILDING && building->GetGOInfo()->garrisonBuilding.SpawnMap) { - for (CellObjectGuidsMap::value_type const& cellGuids : sObjectMgr->GetMapObjectGuids(building->GetGOInfo()->garrisonBuilding.mapID, map->GetSpawnMode())) + for (CellObjectGuidsMap::value_type const& cellGuids : sObjectMgr->GetMapObjectGuids(building->GetGOInfo()->garrisonBuilding.SpawnMap, map->GetSpawnMode())) { for (ObjectGuid::LowType spawnId : cellGuids.second.creatures) if (Creature* spawn = BuildingSpawnHelper<Creature, &Creature::SetHomePosition>(building, spawnId, map)) |