mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 13:50:13 +00:00
MUTATIONOFJB: Add null check.
This commit is contained in:
parent
74ef0d9cfe
commit
f70eb01061
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user