summaryrefslogtreecommitdiff
path: root/src/scripts/Commands/cs_go.cpp
diff options
context:
space:
mode:
authorsucofog <4pdcvicente@gmail.com>2017-11-14 22:50:25 +0100
committersucofog <4pdcvicente@gmail.com>2017-11-14 22:50:25 +0100
commit3b73e99ec8c511707cb096e2607a18f1ef95b8fe (patch)
tree7b85a379832ca68ba3d2a0d18e6e16e8caa7a179 /src/scripts/Commands/cs_go.cpp
parent1ea009e255dc371e5d0d3b98a0b33867a0927cb8 (diff)
parente772b08c6808bae29db96ed2f51ee5b34d768da4 (diff)
Merge branch 'master' of https://github.com/azerothcore/azerothcore-wotlk
Diffstat (limited to 'src/scripts/Commands/cs_go.cpp')
-rw-r--r--src/scripts/Commands/cs_go.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scripts/Commands/cs_go.cpp b/src/scripts/Commands/cs_go.cpp
index 66a7d5f306..4a6235ddee 100644
--- a/src/scripts/Commands/cs_go.cpp
+++ b/src/scripts/Commands/cs_go.cpp
@@ -417,7 +417,7 @@ public:
uint32 areaId = id ? (uint32)atoi(id) : player->GetZoneId();
- AreaTableEntry const* areaEntry = GetAreaEntryByAreaID(areaId);
+ AreaTableEntry const* areaEntry = sAreaTableStore.LookupEntry(areaId);
if (x < 0 || x > 100 || y < 0 || y > 100 || !areaEntry)
{
@@ -427,7 +427,7 @@ public:
}
// update to parent zone if exist (client map show only zones without parents)
- AreaTableEntry const* zoneEntry = areaEntry->zone ? GetAreaEntryByAreaID(areaEntry->zone) : areaEntry;
+ AreaTableEntry const* zoneEntry = areaEntry->zone ? sAreaTableStore.LookupEntry(areaEntry->zone) : areaEntry;
Map const* map = sMapMgr->CreateBaseMap(zoneEntry->mapid);