Core/Phasing: reducde differences between 434 and PR

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

No files matched your search

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