mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-26 22:57:00 +02:00
Fixed "Error: accessing unavailable frame" in some cases
This commit is contained in:
parent
66e9db4bc3
commit
031d3204f7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user