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)
|
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 parent.children.size();
|
||||||
return 1;
|
|
||||||
else
|
|
||||||
return m_goal_tree.children.size();
|
|
||||||
}
|
}
|
||||||
else if (parent.children.size() == 1 &&
|
else if (parent.children.size() == 1 &&
|
||||||
(parent.children[0].type == "AND" ||
|
(parent.children[0].type == "AND" ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user