summaryrefslogtreecommitdiff
path: root/saveload.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-10-28 11:55:29 +0000
committertron <tron@openttd.org>2006-10-28 11:55:29 +0000
commite397b721cda24507068a2028db58f28d7198fce9 (patch)
tree0353b720b14d64966c30ec3e7f905a9eecfa4aca /saveload.c
parent02ae75b380ee26b7c12837b28f753894522fb0a6 (diff)
downloadopenttd-e397b721cda24507068a2028db58f28d7198fce9.tar.xz
(svn r6986) Use the pool macros for the Town pool
Diffstat (limited to 'saveload.c')
-rw-r--r--saveload.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/saveload.c b/saveload.c
index aeb8c5256..56de2a9be 100644
--- a/saveload.c
+++ b/saveload.c
@@ -1258,7 +1258,7 @@ static void *IntToReference(uint index, SLRefType rt)
return GetStation(index);
}
case REF_TOWN: {
- if (!AddBlockIfNeeded(&_town_pool, index))
+ if (!AddBlockIfNeeded(&_Town_pool, index))
error("Towns: failed loading savegame: too many towns");
return GetTown(index);
}