Permalink
Browse files

Formspecs: Fix missing trim() when checking for no_prepend[]

  • Loading branch information...
rubenwardy committed Aug 15, 2018
1 parent 4e2eeee commit 28a3c4963e0f4b5c82762432a3b10db1070cf012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;

0 comments on commit 28a3c49

Please sign in to comment.