diff options
author | bjarni <bjarni@openttd.org> | 2005-04-08 15:40:44 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2005-04-08 15:40:44 +0000 |
commit | a9c52454c80c6cc128dd98e59d9ea0f02d827484 (patch) | |
tree | eb7553a8a41496e56c391ac76436acaa6b3d8741 | |
parent | 5e4961d9028adcb0961cdb52034ba576dde6164b (diff) | |
download | openttd-a9c52454c80c6cc128dd98e59d9ea0f02d827484.tar.xz |
(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)
-rw-r--r-- | vehicle.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1428,7 +1428,7 @@ int32 CmdReplaceVehicle(int x, int y, uint32 flags, uint32 p1, uint32 p2) { 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); |