diff options
author | rubenwardy <rw@rubenwardy.com> | 2019-12-09 21:05:07 +0000 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2019-12-31 21:31:53 +0000 |
commit | 7a0884e2cdcdf39f832b56421a584b770c98f61b (patch) | |
tree | 9768a162d8ef2bc4c5c620871da6ef5f44317ce2 | |
parent | fa858530cc2c241a676562584fe024ab48773149 (diff) | |
download | minetest-7a0884e2cdcdf39f832b56421a584b770c98f61b.tar.gz minetest-7a0884e2cdcdf39f832b56421a584b770c98f61b.tar.bz2 minetest-7a0884e2cdcdf39f832b56421a584b770c98f61b.zip |
Fix spaces breaking formspec_version[] tag
-rw-r--r-- | src/gui/guiFormSpecMenu.cpp | 2 |
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; } |