This commit is contained in:
Alayan 2018-10-10 23:00:34 +02:00
parent 7471d215db
commit ed1ba448a8

View File

@ -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" ||