summaryrefslogtreecommitdiff
path: root/src/date.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/date.cpp')
-rw-r--r--src/date.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/date.cpp b/src/date.cpp
index 168f127c1..315c35db8 100644
--- a/src/date.cpp
+++ b/src/date.cpp
@@ -220,7 +220,7 @@ static void RunVehicleDayProc(uint daytick)
for (i = daytick; i < total; i += DAY_TICKS) {
Vehicle *v = GetVehicle(i);
- if (IsValidVehicle(v)) _on_new_vehicle_day_proc[v->type](v);
+ if (v->IsValid()) _on_new_vehicle_day_proc[v->type](v);
}
}