aboutsummaryrefslogtreecommitdiff
path: root/engines/hopkins/graphics.cpp
diff options
context:
space:
mode:
authorStrangerke2013-04-21 08:24:52 +0200
committerStrangerke2013-04-21 08:25:42 +0200
commitb2d5b403053623517b857598ce8ba1d8bdccc047 (patch)
tree01a52a653d7da69046566e99c1dfa96055d3edd0 /engines/hopkins/graphics.cpp
parent451853596813f7ddcba2b10f1839863d8ebc5d6c (diff)
downloadscummvm-rg350-b2d5b403053623517b857598ce8ba1d8bdccc047.tar.gz
scummvm-rg350-b2d5b403053623517b857598ce8ba1d8bdccc047.tar.bz2
scummvm-rg350-b2d5b403053623517b857598ce8ba1d8bdccc047.zip
HOPKINS: Enlarge _lockedAnims array to avoid potential out of bound access. CID 1004012
Diffstat (limited to 'engines/hopkins/graphics.cpp')
-rw-r--r--engines/hopkins/graphics.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/hopkins/graphics.cpp b/engines/hopkins/graphics.cpp
index f978a5803f..c2c8b426e6 100644
--- a/engines/hopkins/graphics.cpp
+++ b/engines/hopkins/graphics.cpp
@@ -1012,7 +1012,7 @@ void GraphicsManager::endDisplayBob() {
_vm->_objectsMan->resetBob(idx);
}
- for (int idx = 1; idx <= 29; ++idx) {
+ for (int idx = 1; idx < 36; ++idx) {
_vm->_objectsMan->_lockedAnims[idx]._enableFl = false;
}