Fix #3502
This commit is contained in:
parent
7471d215db
commit
ed1ba448a8
@ -189,12 +189,10 @@ irr::core::stringw AchievementInfo::goalString()
|
||||
// ----------------------------------------------------------------------------
|
||||
int AchievementInfo::recursiveGoalCount(goalTree &parent)
|
||||
{
|
||||
if (parent.children.size() != 1)
|
||||
if (parent.children.size() >= 2 &&
|
||||
parent.type != "OR")
|
||||
{
|
||||
if (parent.children[0].type == "OR")
|
||||
return 1;
|
||||
else
|
||||
return m_goal_tree.children.size();
|
||||
return parent.children.size();
|
||||
}
|
||||
else if (parent.children.size() == 1 &&
|
||||
(parent.children[0].type == "AND" ||
|
||||
|
Loading…
Reference in New Issue
Block a user