diff options
author | Johannes Schickel | 2008-03-22 00:33:05 +0000 |
---|---|---|
committer | Johannes Schickel | 2008-03-22 00:33:05 +0000 |
commit | 07bb52b78e08c5ba66e58644b81f8186c1ef1e94 (patch) | |
tree | 79886444cf5361e00bedd37d475ea81768c14b4e /engines/kyra/animator_v2.cpp | |
parent | 7c57c127eac46b90b95baf30ca17cd892f116349 (diff) | |
download | scummvm-rg350-07bb52b78e08c5ba66e58644b81f8186c1ef1e94.tar.gz scummvm-rg350-07bb52b78e08c5ba66e58644b81f8186c1ef1e94.tar.bz2 scummvm-rg350-07bb52b78e08c5ba66e58644b81f8186c1ef1e94.zip |
Fix for bug #1922521 "HoF: mountaineer sprite vanishes".
svn-id: r31217
Diffstat (limited to 'engines/kyra/animator_v2.cpp')
-rw-r--r-- | engines/kyra/animator_v2.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/kyra/animator_v2.cpp b/engines/kyra/animator_v2.cpp index 1a0fcbb939..2ebc719d42 100644 --- a/engines/kyra/animator_v2.cpp +++ b/engines/kyra/animator_v2.cpp @@ -112,6 +112,9 @@ KyraEngine_v2::AnimObj *KyraEngine_v2::deleteAnimListEntry(AnimObj *list, AnimOb cur = cur->nextObject; } + if (cur != entry) + return list; + if (cur == list) { if (!cur->nextObject) return 0; |