summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2007-01-26 20:49:40 +0000
committertron <tron@openttd.org>2007-01-26 20:49:40 +0000
commit8a70d426036f40ace11a48d91009d1fee7cb30e9 (patch)
treec0b69dcbf44d56b0fb2acaad87f17ca0547baa5c
parente7dd766c1e226b40e154f8e3ef15f09bf2e2dd74 (diff)
downloadopenttd-8a70d426036f40ace11a48d91009d1fee7cb30e9.tar.xz
(svn r8424) -Fix
Do not call ClearSlot() just before calling DeleteVehicle(), which does it too
-rw-r--r--src/roadveh_cmd.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp
index 63d02107d..e8f06c5c0 100644
--- a/src/roadveh_cmd.cpp
+++ b/src/roadveh_cmd.cpp
@@ -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);
}