aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/game_state.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/titanic/game_state.cpp')
-rw-r--r--engines/titanic/game_state.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/titanic/game_state.cpp b/engines/titanic/game_state.cpp
index 51c1ea41cf..bebc2ed8b4 100644
--- a/engines/titanic/game_state.cpp
+++ b/engines/titanic/game_state.cpp
@@ -139,7 +139,7 @@ void CGameState::changeView(CViewItem *newView, CMovieClip *clip) {
} else {
oldView->preEnterView(newView);
_gameManager->_gameView->setView(newView);
- CRoomItem *oldRoom = newView->findNode()->findRoom();
+ CRoomItem *oldRoom = oldView->findNode()->findRoom();
CRoomItem *newRoom = newView->findNode()->findRoom();
// If a transition clip is defined, play it