FurnaceRecipe parsing: Fixed whitespace removing.
This commit is contained in:
parent
ec1015112c
commit
0df644c9f7
|
@ -68,7 +68,7 @@ void cFurnaceRecipe::ReloadRecipes(void)
|
||||||
while (std::getline(f, ParsingLine))
|
while (std::getline(f, ParsingLine))
|
||||||
{
|
{
|
||||||
LineNum++;
|
LineNum++;
|
||||||
ParsingLine = TrimString(ParsingLine);
|
ParsingLine.erase(std::remove_if(ParsingLine.begin(), ParsingLine.end(), isspace), ParsingLine.end()); // Remove ALL whitespace from the line
|
||||||
if (ParsingLine.empty())
|
if (ParsingLine.empty())
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user