1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-30 18:09:09 +00:00

(svn r8424) -Fix

Do not call ClearSlot() just before calling DeleteVehicle(), which does it too
This commit is contained in:
tron
2007-01-26 20:49:40 +00:00
parent e7dd766c1e
commit 8a70d42603

View File

@@ -283,7 +283,6 @@ int32 CmdSellRoadVeh(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
RebuildVehicleLists();
InvalidateWindow(WC_COMPANY, v->owner);
DeleteWindowById(WC_VEHICLE_VIEW, v->index);
ClearSlot(v);
DeleteDepotHighlightOfVehicle(v);
DeleteVehicle(v);
if (IsLocalPlayer()) InvalidateWindow(WC_REPLACE_VEHICLE, VEH_Road);
@@ -512,7 +511,6 @@ static void RoadVehDelete(Vehicle *v)
BeginVehicleMove(v);
EndVehicleMove(v);
ClearSlot(v);
DeleteVehicle(v);
}