diff options
Diffstat (limited to 'src/resources/map/map.cpp')
-rw-r--r-- | src/resources/map/map.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/resources/map/map.cpp b/src/resources/map/map.cpp index adda1bcb7..bcec1a4a3 100644 --- a/src/resources/map/map.cpp +++ b/src/resources/map/map.cpp @@ -1598,8 +1598,7 @@ void Map::reduce() restrict2 ++ ri; continue; } - const size_t pos = CAST_SIZE( - x + y * layer2->mWidth); + const size_t pos = x + y * CAST_SIZE(layer2->mWidth); img = layer2->mTiles[pos].image; if (img != nullptr) { |