Mercurial > hg > openttd
diff src/vehicle.cpp @ 7702:40591c7d4bd4 draft
(svn r11236) -Fix [FS#1322]: DeleteVehicleChain can just work as good for all vehicles, instead of not allowing trains to use it (enforced by an assert), but actually using it for trains. Patch by SmatZ.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Tue, 09 Oct 2007 20:53:25 +0000 |
parents | 610b2a5d634a |
children | 8edd7b7aac82 |
line wrap: on
line diff
--- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -564,13 +564,10 @@ /** * Deletes all vehicles in a chain. * @param v The first vehicle in the chain. - * - * @warning This function is not valid for any vehicle containing articulated - * parts. */ void DeleteVehicleChain(Vehicle *v) { - assert(v->type != VEH_TRAIN && v->type != VEH_ROAD); + assert(v->First() == v); do { Vehicle *u = v;