diff options
author | athrxx | 2016-08-27 22:08:40 +0200 |
---|---|---|
committer | athrxx | 2016-08-27 22:09:37 +0200 |
commit | 1694680acea712db0149c74de412e309dbd0c1cc (patch) | |
tree | 4bce6489b8334654492dc3e05db909c31e6ad4e4 /engines | |
parent | c3335657f76e84ebe687597c383b5bad2e8847ba (diff) | |
download | scummvm-rg350-1694680acea712db0149c74de412e309dbd0c1cc.tar.gz scummvm-rg350-1694680acea712db0149c74de412e309dbd0c1cc.tar.bz2 scummvm-rg350-1694680acea712db0149c74de412e309dbd0c1cc.zip |
KYRA: (LOL) - fix #7183 (LOL-CD: game crashes and exits when looking/picking item)
Diffstat (limited to 'engines')
-rw-r--r-- | engines/kyra/animator_tim.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/kyra/animator_tim.cpp b/engines/kyra/animator_tim.cpp index 1d65ba7b1a..b1cfc6a6a8 100644 --- a/engines/kyra/animator_tim.cpp +++ b/engines/kyra/animator_tim.cpp @@ -202,6 +202,9 @@ void TimAnimator::playPart(int animIndex, int firstFrame, int lastFrame, int del return; 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; for (int i = firstFrame; i != (lastFrame + step); i += step) { |