mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-05 01:38:36 +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.
|
// Subrecords.
|
||||||
if (recordId == 0xF1FA) {
|
if (recordId == 0xF1FA) {
|
||||||
if (subrecords == 0) {
|
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 {
|
} else {
|
||||||
for (int i = 0; i < subrecords; ++i) {
|
for (int i = 0; i < subrecords; ++i) {
|
||||||
int32 filePos = file.pos();
|
int32 filePos = file.pos();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user