From 69cf524d38f45b7e4b381437f714aabf374f0143 Mon Sep 17 00:00:00 2001 From: przemek83 <4788832+przemek83@users.noreply.github.com> Date: Sat, 28 Sep 2024 08:33:17 +0200 Subject: [PATCH] Fix issue found by stastic analysis. --- src/Map.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Map.cpp b/src/Map.cpp index fd8db91..6a0e3d7 100644 --- a/src/Map.cpp +++ b/src/Map.cpp @@ -237,7 +237,7 @@ void Map::shiftUp(Point& point, int tileSize) void Map::shiftDown(Point& point, int tileSize) { - point.y_ = (point.y_ / tileSize + 1) * tileSize; + point.y_ = ((point.y_ / tileSize) + 1) * tileSize; } void Map::drawBackgroundTile(const Screen& screen, TilePosition position)