Skip to content

Commit

Permalink
VOYEUR: Fix crash when playing video #42
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Jul 4, 2014
1 parent a7a8b49 commit ff84741
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions engines/voyeur/voyeur.cpp
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit ff84741

Please sign in to comment.