oldloader.c
changeset 4983 b261a5850aa1
parent 4980 1e1cb22b3d27
child 5380 8ea58542b6e0
equal deleted inserted replaced
4982:c87ac2221931 4983:b261a5850aa1
   481 
   481 
   482 	OCL_END()
   482 	OCL_END()
   483 };
   483 };
   484 static bool LoadOldTown(LoadgameState *ls, int num)
   484 static bool LoadOldTown(LoadgameState *ls, int num)
   485 {
   485 {
   486 	if (!AddBlockIfNeeded(&_town_pool, num))
   486 	if (!AddBlockIfNeeded(&_Town_pool, num))
   487 		error("Towns: failed loading savegame: too many towns");
   487 		error("Towns: failed loading savegame: too many towns");
   488 
   488 
   489 	return LoadChunk(ls, GetTown(num), town_chunk);
   489 	return LoadChunk(ls, GetTown(num), town_chunk);
   490 }
   490 }
   491 
   491