diff options
-rw-r--r-- | engines/mutationofjb/animationdecoder.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/mutationofjb/animationdecoder.cpp b/engines/mutationofjb/animationdecoder.cpp index c88a9e095d..81323858ee 100644 --- a/engines/mutationofjb/animationdecoder.cpp +++ b/engines/mutationofjb/animationdecoder.cpp @@ -62,7 +62,9 @@ bool AnimationDecoder::decode(AnimationDecoderCallback *callback) { // Subrecords. if (recordId == 0xF1FA) { if (subrecords == 0) { - callback->onFrame(frameNo, _surface); // Empty record, frame identical to the previous one. + if (callback) { + callback->onFrame(frameNo, _surface); // Empty record, frame identical to the previous one. + } } else { for (int i = 0; i < subrecords; ++i) { int32 filePos = file.pos(); |