oldloader.c
changeset 4973 415bf67206dd
parent 4972 af023b864bad
child 4976 a0d7f63c35b5
equal deleted inserted replaced
4972:af023b864bad 4973:415bf67206dd
   519 	OCL_END()
   519 	OCL_END()
   520 };
   520 };
   521 
   521 
   522 static bool LoadOldDepot(LoadgameState *ls, int num)
   522 static bool LoadOldDepot(LoadgameState *ls, int num)
   523 {
   523 {
   524 	if (!AddBlockIfNeeded(&_depot_pool, num))
   524 	if (!AddBlockIfNeeded(&_Depot_pool, num))
   525 		error("Depots: failed loading savegame: too many depots");
   525 		error("Depots: failed loading savegame: too many depots");
   526 
   526 
   527 	if (!LoadChunk(ls, GetDepot(num), depot_chunk)) return false;
   527 	if (!LoadChunk(ls, GetDepot(num), depot_chunk)) return false;
   528 
   528 
   529 	if (IsValidDepot(GetDepot(num))) {
   529 	if (IsValidDepot(GetDepot(num))) {