Core/Phasing: fixed build

This commit is contained in:
Ovahlord committed 2018-03-19 23:56:58 +01:00
1 parent 20d0aa0c23
commit 1583ae45a4
1 file changed
+1 -1
+1 -1
View File
@@ -516,7 +516,7 @@ uint32 PhasingHandler::GetTerrainMapId(PhaseShift const& phaseShift, Map const*
for (auto itr = phaseShift.VisibleMapIds.rbegin(); itr != phaseShift.VisibleMapIds.rend(); ++itr)
for (int32 gxi = gxbegin; gxi < gxend; ++gxi)
for (int32 gyi = gybegin; gyi < gyend; ++gyi)
if (map->HasGrid(gxi, gyi))
if (map->HasGrid(itr->first, gxi, gyi))
return itr->first;
return map->GetId();