summaryrefslogtreecommitdiff
path: root/src/depot.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/depot.h')
-rw-r--r--src/depot.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/depot.h b/src/depot.h
index 926f1fa85..2b47452cd 100644
--- a/src/depot.h
+++ b/src/depot.h
@@ -51,7 +51,7 @@ void ShowDepotWindow(TileIndex tile, VehicleType type);
*/
static inline Date GetServiceIntervalClamped(uint index)
{
- return (_patches.servint_ispercent) ? clamp(index, MIN_SERVINT_PERCENT, MAX_SERVINT_PERCENT) : clamp(index, MIN_SERVINT_DAYS, MAX_SERVINT_DAYS);
+ return (_patches.servint_ispercent) ? Clamp(index, MIN_SERVINT_PERCENT, MAX_SERVINT_PERCENT) : Clamp(index, MIN_SERVINT_DAYS, MAX_SERVINT_DAYS);
}
/**