1
0

Fixed PolishedGranite et al crafting recipes.

Fixes #1774. Ref.: #1859
This commit is contained in:
Mattes D
2015-04-16 20:59:57 +02:00
parent 1d8a22cb7b
commit ffe7dae4fc
4 changed files with 7 additions and 6 deletions

View File

@@ -366,6 +366,7 @@ void cCraftingRecipes::ClearRecipes(void)
void cCraftingRecipes::AddRecipeLine(int a_LineNum, const AString & a_RecipeLine)
{
// Remove any spaces within the line:
AString RecipeLine(a_RecipeLine);
RecipeLine.erase(std::remove_if(RecipeLine.begin(), RecipeLine.end(), isspace), RecipeLine.end());