1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-21 13:39:09 +00:00

(svn r6986) Use the pool macros for the Town pool

This commit is contained in:
tron
2006-10-28 11:55:29 +00:00
parent 02ae75b380
commit e397b721cd
5 changed files with 12 additions and 34 deletions

View File

@@ -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);
}