summaryrefslogtreecommitdiff
path: root/oldloader.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2005-02-04 14:45:32 +0000
committertruelight <truelight@openttd.org>2005-02-04 14:45:32 +0000
commit98202ed1198f14d7833f941e1404886ab99995db (patch)
tree684f650c3072700fb0cee6a014fae1d38b365317 /oldloader.c
parent99f3fe4c07f60416da4c9747bdc423db88211764 (diff)
downloadopenttd-98202ed1198f14d7833f941e1404886ab99995db.tar.xz
(svn r1787) -Add: Dynamic signs (euh.. yeah, this means you can built 64k signs)
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 ad7455c4e..8647a0eeb 100644
--- a/oldloader.c
+++ b/oldloader.c
@@ -1100,6 +1100,9 @@ static void FixSign(OldSign *o, int num)
if (o->text == 0)
continue;
+ if (!AddBlockIfNeeded(&_sign_pool, i))
+ error("Signs: failed loading savegame: too many signs");
+
n = GetSign(i);
n->str = o->text;