aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKahrl <kahrl@gmx.net>2015-01-09 16:57:54 +0100
committerKahrl <kahrl@gmx.net>2015-01-09 16:57:54 +0100
commit2ab97a7821e863eb3372a42781af42e122b238eb (patch)
tree9e0c653a698814159d1bbe214cc2d84bf9ccd45c /src
parent63867b1a372a4d1a4a4ffdec9d0862b094211a89 (diff)
downloadminetest-2ab97a7821e863eb3372a42781af42e122b238eb.tar.gz
minetest-2ab97a7821e863eb3372a42781af42e122b238eb.tar.bz2
minetest-2ab97a7821e863eb3372a42781af42e122b238eb.zip
Fix logic of checkbox formspec element validity checking
Diffstat (limited to 'src')
-rw-r--r--src/guiFormSpecMenu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/guiFormSpecMenu.cpp b/src/guiFormSpecMenu.cpp
index 80afe594a..a80347b12 100644
--- 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],',');