summaryrefslogtreecommitdiff
path: root/src/newgrf_house.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/newgrf_house.cpp')
-rw-r--r--src/newgrf_house.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_house.cpp b/src/newgrf_house.cpp
index ef9aa2d0e..44e0347ac 100644
--- a/src/newgrf_house.cpp
+++ b/src/newgrf_house.cpp
@@ -288,7 +288,7 @@ static uint32 HouseGetVariable(const ResolverObject *object, byte variable, byte
case 0x47: return TileY(tile) << 16 | TileX(tile);
/* Building counts for old houses with id = parameter. */
- case 0x60: return GetNumHouses(parameter, town);
+ case 0x60: return parameter < NEW_HOUSE_OFFSET ? GetNumHouses(parameter, town) : 0;
/* Building counts for new houses with id = parameter. */
case 0x61: {