Core/Phasing: reducde differences between 434 and PR

This commit is contained in:
Ovahlord
2018-03-18 17:48:08 +01:00
parent 8e1f0da71e
commit e8b9a84594
3 changed files with 23 additions and 4 deletions

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();