From 784951c94252fdfa39761e21f4c85d6b1c80f84a Mon Sep 17 00:00:00 2001 From: Kuhnovic <68320206+Kuhnovic@users.noreply.github.com> Date: Mon, 22 Jan 2024 23:06:42 +0100 Subject: [PATCH] Fix: use correct size parameter type in TileArea constructors (#11869) (cherry picked from commit bf3fd6526bde6a52e64ddb5b980f67a70edc171d) --- src/tilearea_type.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tilearea_type.h b/src/tilearea_type.h index 37e86ba296..cea94a740a 100644 --- a/src/tilearea_type.h +++ b/src/tilearea_type.h @@ -29,7 +29,7 @@ struct OrthogonalTileArea { * @param w the width * @param h the height */ - OrthogonalTileArea(TileIndex tile = INVALID_TILE, uint8_t w = 0, uint8_t h = 0) : tile(tile), w(w), h(h) + OrthogonalTileArea(TileIndex tile = INVALID_TILE, uint16_t w = 0, uint16_t h = 0) : tile(tile), w(w), h(h) { } @@ -87,7 +87,7 @@ struct DiagonalTileArea { * @param a The "x" extent. * @param b The "y" estent. */ - DiagonalTileArea(TileIndex tile = INVALID_TILE, int8_t a = 0, int8_t b = 0) : tile(tile), a(a), b(b) + DiagonalTileArea(TileIndex tile = INVALID_TILE, int16_t a = 0, int16_t b = 0) : tile(tile), a(a), b(b) { }