Skip to content

Commit

Permalink
TITANIC: Fix infinite loop in CViewItem findLink
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Sep 2, 2016
1 parent d9d10d9 commit c6dd30c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/titanic/core/view_item.cpp
Expand Up @@ -168,7 +168,7 @@ void CViewItem::enterView(CViewItem *newView) {

CLinkItem *CViewItem::findLink(CViewItem *newView) {
for (CTreeItem *treeItem = getFirstChild(); treeItem;
treeItem = scan(treeItem)) {
treeItem = treeItem->scan(this)) {
CLinkItem *link = dynamic_cast<CLinkItem *>(treeItem);
if (link && link->connectsTo(newView))
return link;
Expand Down

0 comments on commit c6dd30c

Please sign in to comment.