diff options
author | rubidium <rubidium@openttd.org> | 2008-12-26 21:08:51 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-12-26 21:08:51 +0000 |
commit | 3ebe66a5e47531e9033c8552a1abe82ad0ef448f (patch) | |
tree | dbb2d01a3da0060c340d6e2adcfcf1188c8f3891 /src/economy.cpp | |
parent | f18043ee21218dc9ea26ce41b1294c5212ac363c (diff) | |
download | openttd-3ebe66a5e47531e9033c8552a1abe82ad0ef448f.tar.xz |
(svn r14748) -Codechange: unduplicate window updating when deleting vehicles.
Diffstat (limited to 'src/economy.cpp')
-rw-r--r-- | src/economy.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/economy.cpp b/src/economy.cpp index ccd0cc2b6..22d20f2d1 100644 --- a/src/economy.cpp +++ b/src/economy.cpp @@ -385,10 +385,6 @@ void ChangeOwnershipOfCompanyItems(Owner old_owner, Owner new_owner) FOR_ALL_VEHICLES(v) { if (v->owner == old_owner && IsCompanyBuildableVehicleType(v->type)) { if (new_owner == INVALID_OWNER) { - DeleteWindowById(WC_VEHICLE_VIEW, v->index); - DeleteWindowById(WC_VEHICLE_DETAILS, v->index); - DeleteWindowById(WC_VEHICLE_ORDERS, v->index); - if (v->Previous() == NULL) delete v; } else { v->owner = new_owner; |