aboutsummaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2019-12-09 21:05:07 +0000
committerrubenwardy <rw@rubenwardy.com>2019-12-31 21:31:53 +0000
commit7a0884e2cdcdf39f832b56421a584b770c98f61b (patch)
tree9768a162d8ef2bc4c5c620871da6ef5f44317ce2 /src/gui
parentfa858530cc2c241a676562584fe024ab48773149 (diff)
downloadminetest-7a0884e2cdcdf39f832b56421a584b770c98f61b.tar.gz
minetest-7a0884e2cdcdf39f832b56421a584b770c98f61b.tar.bz2
minetest-7a0884e2cdcdf39f832b56421a584b770c98f61b.zip
Fix spaces breaking formspec_version[] tag
Diffstat (limited to 'src/gui')
-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 83d7923d9..8d740237c 100644
--- a/src/gui/guiFormSpecMenu.cpp
+++ b/src/gui/guiFormSpecMenu.cpp
@@ -2005,7 +2005,7 @@ bool GUIFormSpecMenu::parseVersionDirect(const std::string &data)
return false;
}
- if (parts[0] != "formspec_version") {
+ if (trim(parts[0]) != "formspec_version") {
return false;
}