summaryrefslogtreecommitdiff
path: root/economy.c
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2005-01-10 12:14:15 +0000
committerdarkvater <darkvater@openttd.org>2005-01-10 12:14:15 +0000
commit49e7939a102bbed5066fff9daa3aafb4c3a8564a (patch)
tree70f154ec766ee3f85fb54e9852138989550fcacf /economy.c
parent53bd40ebaf74671a0a44bb5d1c37eb892510fc3e (diff)
downloadopenttd-49e7939a102bbed5066fff9daa3aafb4c3a8564a.tar.xz
(svn r1460) -Fix: [1099225] Bug Fix - Vehicle Lists not updated at Acqusition (thx tamlin and mpetrov) This also fixes some bug but can't find i right now.
Diffstat (limited to 'economy.c')
-rw-r--r--economy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/economy.c b/economy.c
index d7a58a749..0b63c3bf6 100644
--- a/economy.c
+++ b/economy.c
@@ -1519,6 +1519,7 @@ 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
}
extern int GetAmountOwnedBy(Player *p, byte owner);