branch | noai |
changeset 9694 | e72987579514 |
parent 9686 | d3c195c226f9 |
child 7950 | 3d3ed007127a |
--- a/src/date.cpp Fri Aug 03 19:16:36 2007 +0000 +++ b/src/date.cpp Fri Aug 03 22:09:42 2007 +0000 @@ -220,7 +220,7 @@ 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); } }