projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63867b1
)
Fix logic of checkbox formspec element validity checking
author
Kahrl
<kahrl@gmx.net>
Fri, 9 Jan 2015 15:57:54 +0000
(16:57 +0100)
committer
Kahrl
<kahrl@gmx.net>
Fri, 9 Jan 2015 15:57:54 +0000
(16:57 +0100)
src/guiFormSpecMenu.cpp
patch
|
blob
|
history
diff --git
a/src/guiFormSpecMenu.cpp
b/src/guiFormSpecMenu.cpp
index 80afe594a6685fa93e091b05ba1bf19039e89ecd..a80347b12cf5220ead79de6a39357b0149ed19d6 100644
(file)
--- a/
src/guiFormSpecMenu.cpp
+++ b/
src/guiFormSpecMenu.cpp
@@
-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],',');