Navigation Menu

Skip to content

Commit

Permalink
Fix logic of checkbox formspec element validity checking
Browse files Browse the repository at this point in the history
  • Loading branch information
kahrl committed Jan 9, 2015
1 parent 63867b1 commit 2ab97a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/guiFormSpecMenu.cpp
Expand Up @@ -385,7 +385,7 @@ void GUIFormSpecMenu::parseCheckbox(parserData* data,std::string element)
{
std::vector<std::string> parts = split(element,';');

if (((parts.size() >= 3) || (parts.size() <= 4)) ||
if (((parts.size() >= 3) && (parts.size() <= 4)) ||
((parts.size() > 4) && (m_formspec_version > FORMSPEC_API_VERSION)))
{
std::vector<std::string> v_pos = split(parts[0],',');
Expand Down

0 comments on commit 2ab97a7

Please sign in to comment.