A better hotfix for CraftingRecipies
This commit is contained in:
parent
431b7ed0b7
commit
389614c959
@ -367,7 +367,7 @@ void cCraftingRecipes::ClearRecipes(void)
|
|||||||
void cCraftingRecipes::AddRecipeLine(int a_LineNum, const AString & a_RecipeLine)
|
void cCraftingRecipes::AddRecipeLine(int a_LineNum, const AString & a_RecipeLine)
|
||||||
{
|
{
|
||||||
AString RecipeLine(a_RecipeLine);
|
AString RecipeLine(a_RecipeLine);
|
||||||
RecipeLine.erase(std::remove(RecipeLine.begin(), RecipeLine.end(), ' '), RecipeLine.end());
|
RecipeLine.erase(std::remove_if(RecipeLine.begin(), RecipeLine.end(), isspace), RecipeLine.end());
|
||||||
|
|
||||||
AStringVector Sides = StringSplit(RecipeLine, "=");
|
AStringVector Sides = StringSplit(RecipeLine, "=");
|
||||||
if (Sides.size() != 2)
|
if (Sides.size() != 2)
|
||||||
|
Loading…
Reference in New Issue
Block a user