oldloader.c
changeset 4976 2e3d5e8ec510
parent 4973 c671d5dd04bb
child 4977 c5dd04c706bc
equal deleted inserted replaced
4975:7e2f5c450321 4976:2e3d5e8ec510
   707 
   707 
   708 static bool LoadOldIndustry(LoadgameState *ls, int num)
   708 static bool LoadOldIndustry(LoadgameState *ls, int num)
   709 {
   709 {
   710 	Industry *i;
   710 	Industry *i;
   711 
   711 
   712 	if (!AddBlockIfNeeded(&_industry_pool, num))
   712 	if (!AddBlockIfNeeded(&_Industry_pool, num))
   713 		error("Industries: failed loading savegame: too many industries");
   713 		error("Industries: failed loading savegame: too many industries");
   714 
   714 
   715 	i = GetIndustry(num);
   715 	i = GetIndustry(num);
   716 	if (!LoadChunk(ls, i, industry_chunk)) return false;
   716 	if (!LoadChunk(ls, i, industry_chunk)) return false;
   717 
   717