mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-12 14:09:28 +00:00
TITANIC: Hopefully fix write after tree in CGameManager
This commit is contained in:
parent
fe85d4081c
commit
b639f5389f
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user