From 28a3c4963e0f4b5c82762432a3b10db1070cf012 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Wed, 15 Aug 2018 20:06:09 +0100 Subject: Formspecs: Fix missing trim() when checking for no_prepend[] --- src/gui/guiFormSpecMenu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui') 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 parts = split(elements[i], '['); - if (parts[0] == "no_prepend") + if (trim(parts[0]) == "no_prepend") enable_prepends = false; else break; -- cgit v1.2.3