summaryrefslogtreecommitdiff
path: root/oldloader.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2005-02-03 17:22:35 +0000
committertruelight <truelight@openttd.org>2005-02-03 17:22:35 +0000
commit1938a73c90db32244162a927e51c1903fed779f9 (patch)
treebe17b2ce20037210425d4757c66ffc50cccc6d77 /oldloader.c
parentf1d4a85f5989e65998c326864fa59dadf9065e47 (diff)
downloadopenttd-1938a73c90db32244162a927e51c1903fed779f9.tar.xz
(svn r1776) -Add: Dynamic stations. You can now have up to 64k of stations
Diffstat (limited to 'oldloader.c')
-rw-r--r--oldloader.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/oldloader.c b/oldloader.c
index 6de0c483e..4ad72a72f 100644
--- a/oldloader.c
+++ b/oldloader.c
@@ -713,6 +713,9 @@ static void FixStation(OldStation *o, int num)
if (o->xy == 0)
continue;
+ if (!AddBlockIfNeeded(&_station_pool, i))
+ error("Stations: failed loading savegame: too many stations");
+
s = GetStation(i);
s->xy = o->xy;