Mercurial > hg > openttd
diff src/train_cmd.cpp @ 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 | 8823db05b70c |
children | c6f421e5a733 |
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);