diff options
Diffstat (limited to 'sword1/animation.cpp')
-rw-r--r-- | sword1/animation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sword1/animation.cpp b/sword1/animation.cpp index 5c8b8d6ae6..9c0661ee2d 100644 --- a/sword1/animation.cpp +++ b/sword1/animation.cpp @@ -308,7 +308,7 @@ bool AnimationState::decodeFrame() { */ #ifdef BACKEND_8BIT - if (checkPaletteSwitch() || (bgSoundStream == 0) || + if (checkPaletteSwitch() || (bgSoundStream == NULL) || (bgSoundStream->getSamplesPlayed()*12/bgSoundStream->getRate()) < (framenum+3)){ _scr->plotYUV(lut, sequence_i->width, sequence_i->height, info->display_fbuf->buf); @@ -330,7 +330,7 @@ bool AnimationState::decodeFrame() { #else - if ((bgSoundStream->getSamplesPlayed()*12/bgSoundStream->getRate()) < (framenum+3)){ + if ((bgSoundStream == NULL) || (bgSoundStream->getSamplesPlayed()*12/bgSoundStream->getRate()) < (framenum+3)){ plotYUV(lookup2, sequence_i->width, sequence_i->height, info->display_fbuf->buf); if (bgSoundStream) { |