1
0
Fork 0

FurnaceRecipe parsing: Fixed whitespace removing.

This commit is contained in:
Mattes D 2014-06-26 18:28:10 +02:00
parent ec1015112c
commit 0df644c9f7
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ void cFurnaceRecipe::ReloadRecipes(void)
while (std::getline(f, ParsingLine))
{
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())
{
continue;