Преглед изворни кода

Fixes 1542. Infinite loop in Node::IsActiveInHierarchy

seanpaultaylor пре 11 година
родитељ
комит
ac9f578282
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      gameplay/src/Node.cpp

+ 1 - 0
gameplay/src/Node.cpp

@@ -317,6 +317,7 @@ bool Node::isActiveInHierarchy() const
    {
        if (!node->_active)
            return false;
+       node = node->_parent;
    }
    return true;
 }