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

This commit is contained in:
rubenwardy 2018-08-15 20:06:09 +01:00
parent 4e2eeee3cc
commit 28a3c4963e
No known key found for this signature in database
GPG Key ID: A1E29D52FF81513C
1 changed files with 1 additions and 1 deletions

View 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;