summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2019-12-09 21:05:07 +0000
committerrubenwardy <rw@rubenwardy.com>2019-12-09 21:05:07 +0000
commit8e63d22d6472b61477f804dc5b00705650f90409 (patch)
tree7adb706763505681063241bb70f3f16faad5e33e /src
parent9284313d17ba906de449c6d39ef3ddacb6c73791 (diff)
downloadminetest-8e63d22d6472b61477f804dc5b00705650f90409.tar.gz
minetest-8e63d22d6472b61477f804dc5b00705650f90409.tar.bz2
minetest-8e63d22d6472b61477f804dc5b00705650f90409.zip
Fix spaces breaking formspec_version[] tag
Diffstat (limited to 'src')
-rw-r--r--src/gui/guiFormSpecMenu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/guiFormSpecMenu.cpp b/src/gui/guiFormSpecMenu.cpp
index 728747eb8..ab20840f9 100644
--- a/src/gui/guiFormSpecMenu.cpp
+++ b/src/gui/guiFormSpecMenu.cpp
@@ -2262,7 +2262,7 @@ bool GUIFormSpecMenu::parseVersionDirect(const std::string &data)
return false;
}
- if (parts[0] != "formspec_version") {
+ if (trim(parts[0]) != "formspec_version") {
return false;
}