Fix: [Script] IsBuildableRectangle for a 0x0 tile should return false (#15357)

This commit is contained in:
metablaster
2026-04-03 20:38:24 +02:00
committed by Peter Nelson
parent d9e977c823
commit 31ed643942
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -157,8 +157,8 @@ public:
* @param width The width of the rectangle.
* @param height The height of the rectangle.
* @pre ScriptMap::IsValidTile(tile).
* @pre width >= 0.
* @pre height >= 0.
* @pre width > 0.
* @pre height > 0.
* @return True if it is buildable, false if not.
*/
static bool IsBuildableRectangle(TileIndex tile, SQInteger width, SQInteger height);