From 020c1e9b6c228ee812ed85ecc02dc52847940821 Mon Sep 17 00:00:00 2001 From: truelight Date: Sun, 6 Feb 2005 10:24:57 +0000 Subject: (svn r1818) -Add: Dynamic orders (up to 64k orders) --- ttd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ttd.c') 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); -- cgit v1.2.3-54-g00ecf