diff options
author | Paul Gilbert | 2014-07-03 21:00:17 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-07-03 21:00:17 -0400 |
commit | ff84741d39606824d87f48c6b525fe1df83b2df1 (patch) | |
tree | a3a1f2b27151fd40604e6709d210e312987e4387 /engines/voyeur | |
parent | a7a8b49567c8565d63532f7d039d61f045cf8bab (diff) | |
download | scummvm-rg350-ff84741d39606824d87f48c6b525fe1df83b2df1.tar.gz scummvm-rg350-ff84741d39606824d87f48c6b525fe1df83b2df1.tar.bz2 scummvm-rg350-ff84741d39606824d87f48c6b525fe1df83b2df1.zip |
VOYEUR: Fix crash when playing video #42
Diffstat (limited to 'engines/voyeur')
-rw-r--r-- | engines/voyeur/voyeur.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/voyeur/voyeur.cpp b/engines/voyeur/voyeur.cpp index 681f431635..dad634c9bb 100644 --- a/engines/voyeur/voyeur.cpp +++ b/engines/voyeur/voyeur.cpp @@ -556,6 +556,7 @@ void VoyeurEngine::playAVideoDuration(int videoId, int duration) { PictureResource *pic = NULL; if (videoId == 42) { + _bVoy->getBoltGroup(0xE00); _eventsManager->_videoDead = 0; pic = _bVoy->boltEntry(0xE00 + _eventsManager->_videoDead)._picResource; } @@ -602,6 +603,9 @@ void VoyeurEngine::playAVideoDuration(int videoId, int duration) { pic->_imgData = imgData; _voy->_eventFlags &= ~EVTFLAG_8; } + + if (videoId == 42) + _bVoy->freeBoltGroup(0xE00); } void VoyeurEngine::playAudio(int audioId) { |