Skip to content

Commit

Permalink
Formspecs: Fix missing trim() when checking for no_prepend[]
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenwardy committed Aug 15, 2018
1 parent 4e2eeee commit 28a3c49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/guiFormSpecMenu.cpp
Expand Up @@ -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;
Expand Down

2 comments on commit 28a3c49

@rubenwardy
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kilbith
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.