Fixed forgotten error checking
This commit is contained in:
parent
8f0c4911f7
commit
8f7b9acb48
@ -324,7 +324,11 @@ void cCraftingRecipes::LoadRecipes(void)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
AString Everything;
|
AString Everything;
|
||||||
f.ReadRestOfFile(Everything);
|
if (!f.ReadRestOfFile(Everything))
|
||||||
|
{
|
||||||
|
LOGWARNING("Cannot read file \"crafting.txt\", no crafting recipes will be available!");
|
||||||
|
return;
|
||||||
|
}
|
||||||
f.Close();
|
f.Close();
|
||||||
|
|
||||||
// Split it into lines, then process each line as a single recipe:
|
// Split it into lines, then process each line as a single recipe:
|
||||||
|
Loading…
Reference in New Issue
Block a user