(svn r2167) -fix: [autoreplace] trains now get the default cargo type if the engine
authorbjarni
Fri, 08 Apr 2005 15:40:44 +0000
changeset 1663 b086c94fb9a5
parent 1662 9f8c03dbc1bd
child 1664 000099fbae6e
(svn r2167) -fix: [autoreplace] trains now get the default cargo type if the engine
replaced from did not have cargo capacity (instead of refitting to passengers)
vehicle.c
--- a/vehicle.c	Thu Apr 07 19:33:32 2005 +0000
+++ b/vehicle.c	Fri Apr 08 15:40:44 2005 +0000
@@ -1428,7 +1428,7 @@
 				{
 				const RailVehicleInfo *rvi = RailVehInfo(new_engine_type);
 				const RailVehicleInfo *rvi2 = RailVehInfo(old_engine_type);
-				byte capacity = rvi->capacity;
+				byte capacity = rvi2->capacity;
 				Vehicle *first = GetFirstVehicleInChain(v);
 
 				//if (v->owner == _local_player) InvalidateWindowClasses(WC_TRAINS_LIST);