summaryrefslogtreecommitdiff
path: root/src/town_map.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/town_map.h')
-rw-r--r--src/town_map.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/town_map.h b/src/town_map.h
index 883b33226..1230d8f71 100644
--- a/src/town_map.h
+++ b/src/town_map.h
@@ -283,7 +283,7 @@ static inline void IncHouseConstructionTick(TileIndex t)
/* House is now completed.
* Store the year of construction as well, for newgrf house purpose */
SetHouseCompleted(t, true);
- _m[t].m5 = clamp(_cur_year - ORIGINAL_BASE_YEAR, 0, 0xFF);
+ _m[t].m5 = Clamp(_cur_year - ORIGINAL_BASE_YEAR, 0, 0xFF);
}
}