(svn r14148) -Fix (r14096) [FS#2239]: Orders were freed while they were still shared by other vehicles.

This commit is contained in:
frosch 2008-08-23 23:15:04 +00:00
parent 32e1fd55c5
commit 13d938ae3d
1 changed files with 1 additions and 1 deletions

View File

@ -1433,7 +1433,7 @@ CommandCost CmdSellRailWagon(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
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);