summaryrefslogtreecommitdiffstats
path: root/src/CraftingRecipes.cpp
diff options
context:
space:
mode:
authorSTRWarrior <STRWarrior@users.noreply.github.com>2014-08-30 22:42:38 +0200
committerSTRWarrior <STRWarrior@users.noreply.github.com>2014-08-30 22:42:38 +0200
commit9f321e29cf50c5cdd828fa1bbce1de2f0cbbc58e (patch)
treea6ad2990fdaff104c3663a8655be26ad55dc1ccc /src/CraftingRecipes.cpp
parentWSSAnvil: Removed leftover debugging code. (diff)
parentFixed style. (diff)
downloadcuberite-9f321e29cf50c5cdd828fa1bbce1de2f0cbbc58e.tar
cuberite-9f321e29cf50c5cdd828fa1bbce1de2f0cbbc58e.tar.gz
cuberite-9f321e29cf50c5cdd828fa1bbce1de2f0cbbc58e.tar.bz2
cuberite-9f321e29cf50c5cdd828fa1bbce1de2f0cbbc58e.tar.lz
cuberite-9f321e29cf50c5cdd828fa1bbce1de2f0cbbc58e.tar.xz
cuberite-9f321e29cf50c5cdd828fa1bbce1de2f0cbbc58e.tar.zst
cuberite-9f321e29cf50c5cdd828fa1bbce1de2f0cbbc58e.zip
Diffstat (limited to 'src/CraftingRecipes.cpp')
-rw-r--r--src/CraftingRecipes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CraftingRecipes.cpp b/src/CraftingRecipes.cpp
index 223184c64..ed3409207 100644
--- a/src/CraftingRecipes.cpp
+++ b/src/CraftingRecipes.cpp
@@ -367,7 +367,7 @@ void cCraftingRecipes::ClearRecipes(void)
void cCraftingRecipes::AddRecipeLine(int a_LineNum, const AString & 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, "=");
if (Sides.size() != 2)