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 | 0c6c3311c9bd3e5544b632433c4d8416d6273848 (patch) | |
tree | dbb2d01a3da0060c340d6e2adcfcf1188c8f3891 /src/economy.cpp | |
parent | c34ce32f261fb145af2d2153f0e694ac7a99a80c (diff) | |
download | openttd-0c6c3311c9bd3e5544b632433c4d8416d6273848.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; |