aboutsummaryrefslogtreecommitdiff
path: root/engines/illusions/duckman
diff options
context:
space:
mode:
authorCameron Cawley2018-12-03 23:54:24 +0000
committerFilippos Karapetis2018-12-04 01:54:24 +0200
commiteea066b89b3279d8a754f3d3da1ac8a190904196 (patch)
treeef42637c858650c75d0043578b231740f46df4a9 /engines/illusions/duckman
parentb9c60558369f0c503e82ba029eb5c78583dc3e6b (diff)
downloadscummvm-rg350-eea066b89b3279d8a754f3d3da1ac8a190904196.tar.gz
scummvm-rg350-eea066b89b3279d8a754f3d3da1ac8a190904196.tar.bz2
scummvm-rg350-eea066b89b3279d8a754f3d3da1ac8a190904196.zip
ILLUSIONS: DUCKMAN: Add support for the demo version (#1413)
Diffstat (limited to 'engines/illusions/duckman')
-rw-r--r--engines/illusions/duckman/duckman_videoplayer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/illusions/duckman/duckman_videoplayer.cpp b/engines/illusions/duckman/duckman_videoplayer.cpp
index ae17d32381..b2ccd630b9 100644
--- a/engines/illusions/duckman/duckman_videoplayer.cpp
+++ b/engines/illusions/duckman/duckman_videoplayer.cpp
@@ -69,7 +69,7 @@ void DuckmanVideoPlayer::update() {
} else if (_videoDecoder->needsUpdate()) {
const Graphics::Surface *frame = _videoDecoder->decodeNextFrame();
Graphics::Surface *backSurface = _vm->_screen->getBackSurface();
- if (frame->format.bytesPerPixel == g_system->getScreenFormat().bytesPerPixel) {
+ if (frame && frame->format.bytesPerPixel == g_system->getScreenFormat().bytesPerPixel) {
const int width = MIN(frame->w, backSurface->w);
const int height = MIN(frame->h, backSurface->h);
const byte *src = (const byte*)frame->getPixels();