diff options
author | bjarni <bjarni@openttd.org> | 2007-04-29 20:16:58 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2007-04-29 20:16:58 +0000 |
commit | 5eb076402f759d926ee0a5c99b0100621b04f6a6 (patch) | |
tree | de58208464ce19ae3401292534602b53ce15c99a | |
parent | dba21ab802a21588ee6d03c202b1c809b06f9982 (diff) | |
download | openttd-5eb076402f759d926ee0a5c99b0100621b04f6a6.tar.xz |
(svn r9753) -Fix [FS#732]: trains are lost after autorenewal/autoreplace
v->dest_tile is now copied when replacing the front engine
-rw-r--r-- | src/autoreplace_cmd.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/autoreplace_cmd.cpp b/src/autoreplace_cmd.cpp index 36bf98e7f..59e2ac44d 100644 --- a/src/autoreplace_cmd.cpp +++ b/src/autoreplace_cmd.cpp @@ -196,6 +196,7 @@ static int32 ReplaceVehicle(Vehicle **w, byte flags, int32 total_cost) new_v->service_interval = old_v->service_interval; new_front = true; new_v->unitnumber = old_v->unitnumber; // use the same unit number + new_v->dest_tile = old_v->dest_tile; new_v->current_order = old_v->current_order; if (old_v->type == VEH_TRAIN && GetNextVehicle(old_v) != NULL){ |