diff options
author | Johannes Schickel | 2008-05-19 21:47:42 +0000 |
---|---|---|
committer | Johannes Schickel | 2008-05-19 21:47:42 +0000 |
commit | 815ca646e1eb81240cc36631238fb10d8dc95a4a (patch) | |
tree | 336752a1ca5dafd26a8309b71c43d1ed39316e58 /engines/kyra/animator_hof.cpp | |
parent | 520af7d4bbe2dd2eb0f023e5d868e755b774350b (diff) | |
download | scummvm-rg350-815ca646e1eb81240cc36631238fb10d8dc95a4a.tar.gz scummvm-rg350-815ca646e1eb81240cc36631238fb10d8dc95a4a.tar.bz2 scummvm-rg350-815ca646e1eb81240cc36631238fb10d8dc95a4a.zip |
- Fixed out of bounds bug in KyraEngine_MR::updateItemAnimations
- Clean up in KyraEngine_HoF::updateItemAnimations
svn-id: r32189
Diffstat (limited to 'engines/kyra/animator_hof.cpp')
-rw-r--r-- | engines/kyra/animator_hof.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/kyra/animator_hof.cpp b/engines/kyra/animator_hof.cpp index 65f38cd961..c5d44d10af 100644 --- a/engines/kyra/animator_hof.cpp +++ b/engines/kyra/animator_hof.cpp @@ -128,7 +128,7 @@ void KyraEngine_HoF::updateItemAnimations() { const ItemAnimData_v2 *s = &_itemAnimData[_nextAnimItem]; ActiveItemAnim *a = &_activeItemAnim[_nextAnimItem]; - _nextAnimItem = ++_nextAnimItem % 14; + _nextAnimItem = ++_nextAnimItem % _itemAnimDataSize; uint32 ctime = _system->getMillis(); if (ctime < a->nextFrame) |