aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock
diff options
context:
space:
mode:
authorPaul Gilbert2016-02-12 20:09:40 -0500
committerPaul Gilbert2016-02-12 20:09:40 -0500
commit52f8b6dfe05a419e26cb24b6e3c9262e85a9ffaf (patch)
tree86594c26414c46321f824d14309550738070b0ff /engines/sherlock
parent60d4367f3cb8aa2020adb9c36fb81c9a6be5dd7e (diff)
downloadscummvm-rg350-52f8b6dfe05a419e26cb24b6e3c9262e85a9ffaf.tar.gz
scummvm-rg350-52f8b6dfe05a419e26cb24b6e3c9262e85a9ffaf.tar.bz2
scummvm-rg350-52f8b6dfe05a419e26cb24b6e3c9262e85a9ffaf.zip
SHERLOCK: RT: Work around bad animation frame data in German version
Diffstat (limited to 'engines/sherlock')
-rw-r--r--engines/sherlock/objects.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sherlock/objects.cpp b/engines/sherlock/objects.cpp
index 1372605a82..2a728f6ec9 100644
--- a/engines/sherlock/objects.cpp
+++ b/engines/sherlock/objects.cpp
@@ -1338,7 +1338,7 @@ void Object::adjustObject() {
frame = 0;
int imgNum = _sequences[frame];
- if (imgNum > _maxFrames)
+ if (imgNum > _maxFrames || imgNum == 0)
imgNum = 1;
_imageFrame = &(*_images)[imgNum - 1];