diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-08-29 16:12:45 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-08-29 16:12:45 +0200 |
commit | 389614c9599dc6a24a0f22b0a16e8af02e4b4cca (patch) | |
tree | 76ebbcecf3d2c1ec2fdb2f7bc61dd3d2db1e0e7b /src | |
parent | Merge branch 'master' of https://github.com/mc-server/MCServer (diff) | |
download | cuberite-389614c9599dc6a24a0f22b0a16e8af02e4b4cca.tar cuberite-389614c9599dc6a24a0f22b0a16e8af02e4b4cca.tar.gz cuberite-389614c9599dc6a24a0f22b0a16e8af02e4b4cca.tar.bz2 cuberite-389614c9599dc6a24a0f22b0a16e8af02e4b4cca.tar.lz cuberite-389614c9599dc6a24a0f22b0a16e8af02e4b4cca.tar.xz cuberite-389614c9599dc6a24a0f22b0a16e8af02e4b4cca.tar.zst cuberite-389614c9599dc6a24a0f22b0a16e8af02e4b4cca.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/CraftingRecipes.cpp | 2 |
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) |