Skip to content

Commit 2ab97a7

Browse files
committedJan 9, 2015
Fix logic of checkbox formspec element validity checking
1 parent 63867b1 commit 2ab97a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/guiFormSpecMenu.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ void GUIFormSpecMenu::parseCheckbox(parserData* data,std::string element)
385385
{
386386
std::vector<std::string> parts = split(element,';');
387387

388-
if (((parts.size() >= 3) || (parts.size() <= 4)) ||
388+
if (((parts.size() >= 3) && (parts.size() <= 4)) ||
389389
((parts.size() > 4) && (m_formspec_version > FORMSPEC_API_VERSION)))
390390
{
391391
std::vector<std::string> v_pos = split(parts[0],',');

0 commit comments

Comments
 (0)
Please sign in to comment.