aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/animator_v2.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2010-10-22 02:10:22 +0000
committerJohannes Schickel2010-10-22 02:10:22 +0000
commit03e2d54ca7f3d5533cbae376921cf617736caee5 (patch)
tree989df6c2dc37bd783ad678744a60e446b8b74007 /engines/kyra/animator_v2.cpp
parent3653613443d8def9ae7f552eb799d1f039fd8097 (diff)
downloadscummvm-rg350-03e2d54ca7f3d5533cbae376921cf617736caee5.tar.gz
scummvm-rg350-03e2d54ca7f3d5533cbae376921cf617736caee5.tar.bz2
scummvm-rg350-03e2d54ca7f3d5533cbae376921cf617736caee5.zip
KYRA: Adapt Kyra2+3 to use the newly added item type too.
svn-id: r53697
Diffstat (limited to 'engines/kyra/animator_v2.cpp')
-rw-r--r--engines/kyra/animator_v2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/kyra/animator_v2.cpp b/engines/kyra/animator_v2.cpp
index 6c4fafa674..b06dffd36f 100644
--- a/engines/kyra/animator_v2.cpp
+++ b/engines/kyra/animator_v2.cpp
@@ -141,7 +141,7 @@ void KyraEngine_v2::flagAnimObjsSpecialRefresh() {
}
void KyraEngine_v2::addItemToAnimList(int item) {
- assert(item < _itemListSize);
+ assert(item >= 0 && item < _itemListSize);
restorePage3();