Mercurial > hg > openttd
diff src/saveload/afterload.cpp @ 12305:217431f4bc67 draft
(svn r16722) -Codechange: unify the naming of the Is/Set/HasArticulatedPart functions
author | rubidium <rubidium@openttd.org> |
---|---|
date | Thu, 02 Jul 2009 09:06:15 +0000 (2009-07-02) |
parents | 218a41d3d557 |
children | 82830e1cd892 |
line wrap: on
line diff
--- a/src/saveload/afterload.cpp +++ b/src/saveload/afterload.cpp @@ -1870,7 +1870,7 @@ FOR_ALL_DISASTERVEHICLES(v) { if (v->subtype == 2/*ST_SMALL_UFO*/ && v->current_order.GetDestination() != 0) { const Vehicle *u = Vehicle::GetIfValid(v->dest_tile); - if (u == NULL || u->type != VEH_ROAD || !IsRoadVehFront(u)) { + if (u == NULL || u->type != VEH_ROAD || !RoadVehicle::From(u)->IsRoadVehFront()) { delete v; } }