diff --git a/src/genworld.cpp b/src/genworld.cpp index 0f51bff595..d6f4eefec9 100644 --- a/src/genworld.cpp +++ b/src/genworld.cpp @@ -452,7 +452,7 @@ void LoadTownData() break; case HM_COUNTER_CLOCKWISE: /* Tile coordinates are rotated and must be adjusted. */ - target_tile = TileXY((1 - y_proportion * Map::MaxX()), x_proportion * Map::MaxY()); + target_tile = TileXY((1 - y_proportion) * Map::MaxX(), x_proportion * Map::MaxY()); break; default: NOT_REACHED(); }