Mercurial > hg > openttd
changeset 9991:82c0a9b867a3 draft
(svn r14148) -Fix (r14096) [FS#2239]: Orders were freed while they were still shared by other vehicles.
author | frosch <frosch@openttd.org> |
---|---|
date | Sat, 23 Aug 2008 23:15:04 +0000 |
parents | e2f6744b9a0e |
children | c6f421e5a733 |
files | src/train_cmd.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -1433,7 +1433,7 @@ first->group_id = DEFAULT_GROUP; new_f->AddToShared(first); - first->RemoveFromShared(); + DeleteVehicleOrders(first); /* If we deleted a window then open a new one for the 'new' train */ if (IsLocalPlayer() && w != NULL) ShowVehicleViewWindow(new_f);