summaryrefslogtreecommitdiff
path: root/ttd.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2005-02-06 10:24:57 +0000
committertruelight <truelight@openttd.org>2005-02-06 10:24:57 +0000
commit79d1ed2c66a8b5179d5c1ac013c37a64a05f5ec5 (patch)
tree6c6585bdaca582be23e16326cdd45058a6e3a17f /ttd.c
parentbd7f37d5926ec9a5798134c4a39ef7b8cd3fd4ea (diff)
downloadopenttd-79d1ed2c66a8b5179d5c1ac013c37a64a05f5ec5.tar.xz
(svn r1818) -Add: Dynamic orders (up to 64k orders)
Diffstat (limited to 'ttd.c')
-rw-r--r--ttd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ttd.c b/ttd.c
index 83c3e58cb..f4d98a5b1 100644
--- a/ttd.c
+++ b/ttd.c
@@ -440,8 +440,6 @@ static void ParseResolution(int res[2], char *s)
static void InitializeDynamicVariables(void)
{
/* Dynamic stuff needs to be initialized somewhere... */
- _orders_size = lengthof(_orders);
-
_station_sort = NULL;
_vehicle_sort = NULL;
_town_sort = NULL;
@@ -456,6 +454,7 @@ static void UnInitializeDynamicVariables(void)
CleanPool(&_station_pool);
CleanPool(&_vehicle_pool);
CleanPool(&_sign_pool);
+ CleanPool(&_order_pool);
free(_station_sort);
free(_vehicle_sort);