mirror of
https://github.com/moparisthebest/minetest
synced 2024-11-05 08:55:01 -05:00
Fix logic of checkbox formspec element validity checking
This commit is contained in:
parent
63867b1a37
commit
2ab97a7821
@ -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],',');
|
||||
|
Loading…
Reference in New Issue
Block a user