aboutsummaryrefslogtreecommitdiff
path: root/engines/mutationofjb
diff options
context:
space:
mode:
authorĽubomír Remák2018-07-15 18:23:19 +0200
committerEugene Sandulenko2018-08-25 23:12:01 +0200
commitf70eb01061d3e5dd74ed8065d0435a4273d973dc (patch)
treed6ab48c3b0e22caa805a34c8409edac0e251a784 /engines/mutationofjb
parent74ef0d9cfe2106cd0e4286ccd3e829c2edc00f98 (diff)
downloadscummvm-rg350-f70eb01061d3e5dd74ed8065d0435a4273d973dc.tar.gz
scummvm-rg350-f70eb01061d3e5dd74ed8065d0435a4273d973dc.tar.bz2
scummvm-rg350-f70eb01061d3e5dd74ed8065d0435a4273d973dc.zip
MUTATIONOFJB: Add null check.
Diffstat (limited to 'engines/mutationofjb')
-rw-r--r--engines/mutationofjb/animationdecoder.cpp4
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();