diff options
Diffstat (limited to 'engines/titanic/core/tree_item.cpp')
-rw-r--r-- | engines/titanic/core/tree_item.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/titanic/core/tree_item.cpp b/engines/titanic/core/tree_item.cpp index cda3ca4b2f..b476777d90 100644 --- a/engines/titanic/core/tree_item.cpp +++ b/engines/titanic/core/tree_item.cpp @@ -169,7 +169,7 @@ CTreeItem *CTreeItem::findNextInstanceOf(ClassDef *classDef, CTreeItem *startIte void CTreeItem::addUnder(CTreeItem *newParent) { if (newParent->_firstChild) - addSibling(newParent->getLastSibling()); + addSibling(newParent->_firstChild->getLastSibling()); else setParent(newParent); } |