Formspecs: Fix missing trim() when checking for no_prepend[]
authorrubenwardy <rw@rubenwardy.com>
Wed, 15 Aug 2018 19:06:09 +0000 (20:06 +0100)
committerrubenwardy <rw@rubenwardy.com>
Wed, 15 Aug 2018 19:06:09 +0000 (20:06 +0100)
src/gui/guiFormSpecMenu.cpp

index f39eb70abb67b2193b15b15fda01a13c5724f97e..948ee40305aeb0f3a9a1ac05352b9aac1f074093 100644 (file)
@@ -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;