summaryrefslogtreecommitdiff
path: root/src/economy.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-05-18 16:51:44 +0000
committerrubidium <rubidium@openttd.org>2008-05-18 16:51:44 +0000
commit9defec78767131d1dc9765c8943ae3bb165e8713 (patch)
tree4fbae4aa35ef120179cf9069c2eb93fa136ed7a2 /src/economy.cpp
parentaab9e191f5612d0ddf309d8ec9de109218babd32 (diff)
downloadopenttd-9defec78767131d1dc9765c8943ae3bb165e8713.tar.xz
(svn r13165) -Codechange: replace some RebuildXXXList/ResortXXXList+InvalidateWindowXXX with InvalidateWindowXXXData.
Diffstat (limited to 'src/economy.cpp')
-rw-r--r--src/economy.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/economy.cpp b/src/economy.cpp
index c7c2f2801..261e7b5c1 100644
--- a/src/economy.cpp
+++ b/src/economy.cpp
@@ -1781,7 +1781,10 @@ static void DoAcquireCompany(Player *p)
p->is_active = false;
DeletePlayerWindows(pi);
- RebuildVehicleLists(); //Updates the open windows to add the newly acquired vehicles to the lists
+ InvalidateWindowClassesData(WC_TRAINS_LIST, 0);
+ InvalidateWindowClassesData(WC_SHIPS_LIST, 0);
+ InvalidateWindowClassesData(WC_ROADVEH_LIST, 0);
+ InvalidateWindowClassesData(WC_AIRCRAFT_LIST, 0);
}
extern int GetAmountOwnedBy(const Player *p, PlayerID owner);