Permalink
Browse files

MUTATIONOFJB: Add null check.

  • Loading branch information...
LubomirR committed Jul 15, 2018
1 parent 58fc2b9 commit 05ce7de886e963c81156ff6351f9af00858d24f5
Showing with 3 additions and 1 deletion.
  1. +3 −1 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();

0 comments on commit 05ce7de

Please sign in to comment.