Changeset - r28554:a7435a91129e
[Not reviewed]
master
0 1 0
Kuhnovic - 3 months ago 2024-01-22 22:06:42
68320206+Kuhnovic@users.noreply.github.com
Fix: use correct size parameter type in TileArea constructors (#11869)
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/tilearea_type.h
Show inline comments
 
@@ -26,7 +26,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)
 
	{
 
	}
 

	
 
@@ -79,7 +79,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)
 
	{
 
	}
 

	
0 comments (0 inline, 0 general)