Skip to content

Commit ec3313f

Browse files
authored
Merge pull request #1363 from MageKing17/bugfix/generic-anim-static-png
Reset generic animation type to BM_TYPE_NONE if APNG processing fails.
2 parents e6c6cc3 + f2c099a commit ec3313f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

code/graphics/generic.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ int generic_anim_stream(generic_anim *ga, const bool cache)
226226
mprintf(("Failed to load apng: %s\n", e.what() ));
227227
delete ga->png.anim;
228228
ga->png.anim = nullptr;
229+
ga->type = BM_TYPE_NONE;
229230
return -1;
230231
}
231232
nprintf(("apng", "apng read OK (%ix%i@%i) duration (%f)\n", ga->png.anim->w, ga->png.anim->h,

0 commit comments

Comments
 (0)