From 1938a73c90db32244162a927e51c1903fed779f9 Mon Sep 17 00:00:00 2001 From: truelight Date: Thu, 3 Feb 2005 17:22:35 +0000 Subject: (svn r1776) -Add: Dynamic stations. You can now have up to 64k of stations --- oldloader.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'oldloader.c') 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; -- cgit v1.2.3-54-g00ecf