aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2016-12-18 21:07:04 -0500
committerPaul Gilbert2016-12-18 21:07:04 -0500
commitb639f5389f7da26d113d103dd64faecfa7846696 (patch)
treecb609050baf7fd76a409bcf9462f55430876f488
parentfe85d4081c0805ce6777dfc0ba899c120d6ad9b4 (diff)
downloadscummvm-rg350-b639f5389f7da26d113d103dd64faecfa7846696.tar.gz
scummvm-rg350-b639f5389f7da26d113d103dd64faecfa7846696.tar.bz2
scummvm-rg350-b639f5389f7da26d113d103dd64faecfa7846696.zip
TITANIC: Hopefully fix write after tree in CGameManager
-rw-r--r--engines/titanic/game_manager.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/titanic/game_manager.cpp b/engines/titanic/game_manager.cpp
index 9e107c92b9..fb05705347 100644
--- a/engines/titanic/game_manager.cpp
+++ b/engines/titanic/game_manager.cpp
@@ -220,6 +220,9 @@ void CGameManager::updateMovies() {
if (movie->_handled)
continue;
+ // Flag the movie to have been handled
+ movie->_handled = true;
+
CMovieEventList eventsList;
if (!movie->handleEvents(eventsList))
movie->removeFromPlayingMovies();
@@ -247,8 +250,6 @@ void CGameManager::updateMovies() {
eventsList.remove(movieEvent);
}
- // Flag the movie as having been handled
- movie->_handled = true;
repeatFlag = true;
break;
}