1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Fixed "Error: accessing unavailable frame" in some cases

This commit is contained in:
AlexVinS 2018-03-30 13:40:40 +03:00
parent 66e9db4bc3
commit 031d3204f7

View File

@ -283,8 +283,8 @@ void CAnimImage::setFrame(size_t Frame, size_t Group)
return;
if (anim->size(Group) > Frame)
{
anim->load(Frame, Group);
anim->unload(frame, group);
anim->load(Frame, Group);
frame = Frame;
group = Group;
IImage *img = anim->getImage(frame, group);