diff options
author | rubenwardy <rw@rubenwardy.com> | 2018-08-15 20:06:09 +0100 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2018-08-15 20:06:09 +0100 |
commit | 28a3c4963e0f4b5c82762432a3b10db1070cf012 (patch) | |
tree | 5bf3f63a44a1779f0023f6214ae219ab73a485da /src | |
parent | 4e2eeee3cc338b95e40a662c37eb4c6c3e7b4101 (diff) | |
download | minetest-28a3c4963e0f4b5c82762432a3b10db1070cf012.tar.gz minetest-28a3c4963e0f4b5c82762432a3b10db1070cf012.tar.bz2 minetest-28a3c4963e0f4b5c82762432a3b10db1070cf012.zip |
Formspecs: Fix missing trim() when checking for no_prepend[]
Diffstat (limited to 'src')
-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 f39eb70ab..948ee4030 100644 --- a/src/gui/guiFormSpecMenu.cpp +++ b/src/gui/guiFormSpecMenu.cpp @@ -2090,7 +2090,7 @@ void GUIFormSpecMenu::regenerateGui(v2u32 screensize) break; std::vector<std::string> parts = split(elements[i], '['); - if (parts[0] == "no_prepend") + if (trim(parts[0]) == "no_prepend") enable_prepends = false; else break; |