diff --git a/date.c b/date.c --- a/date.c +++ b/date.c @@ -202,7 +202,7 @@ static void RunVehicleDayProc(uint dayti for (i = daytick; i < total; i += DAY_TICKS) { Vehicle *v = GetVehicle(i); - if (v->type != 0) _on_new_vehicle_day_proc[v->type - 0x10](v); + if (IsValidVehicle(v)) _on_new_vehicle_day_proc[v->type - 0x10](v); } }