KYRA: (LOL) - fix #7183 (LOL-CD: game crashes and exits when looking/picking item)
This commit is contained in:
parent
c3335657f7
commit
1694680ace
1 changed files with 3 additions and 0 deletions
|
@ -202,6 +202,9 @@ void TimAnimator::playPart(int animIndex, int firstFrame, int lastFrame, int del
|
||||||
return;
|
return;
|
||||||
|
|
||||||
Animation *anim = &_animations[animIndex];
|
Animation *anim = &_animations[animIndex];
|
||||||
|
// WORKAROUND for some bugged scripts that will try to play invalid animations
|
||||||
|
if (!anim->wsa)
|
||||||
|
return;
|
||||||
|
|
||||||
int step = (lastFrame >= firstFrame) ? 1 : -1;
|
int step = (lastFrame >= firstFrame) ? 1 : -1;
|
||||||
for (int i = firstFrame; i != (lastFrame + step); i += step) {
|
for (int i = firstFrame; i != (lastFrame + step); i += step) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue