summaryrefslogtreecommitdiff
path: root/ttd.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2005-02-01 18:32:01 +0000
committertruelight <truelight@openttd.org>2005-02-01 18:32:01 +0000
commit777dd99585ca5a775cd189eedd81e27d3ca395ed (patch)
treeb7d40aab99c9bff1a5304e4659c8cc7748b8a881 /ttd.c
parent6d5fdc2b6883f3522ccd0d4fa49e5855c5c70f79 (diff)
downloadopenttd-777dd99585ca5a775cd189eedd81e27d3ca395ed.tar.xz
(svn r1764) -Add: dynamic towns, you can now have up to 64k towns (let me know when
you have that amount of towns in a map ;))
Diffstat (limited to 'ttd.c')
-rw-r--r--ttd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ttd.c b/ttd.c
index 0b15b06a3..d78164faa 100644
--- a/ttd.c
+++ b/ttd.c
@@ -503,7 +503,6 @@ static void InitializeDynamicVariables(void)
_vehicles_size = lengthof(_vehicles);
_vehicle_sort = NULL;
- _towns_size = lengthof(_towns);
_town_sort = NULL;
_industries_size = lengthof(_industries);
@@ -516,6 +515,8 @@ static void InitializeDynamicVariables(void)
static void UnInitializeDynamicVariables(void)
{
/* Dynamic stuff needs to be free'd somewhere... */
+ CleanPool(&_town_pool);
+
free(_station_sort);
free(_vehicle_sort);