From b2d5b403053623517b857598ce8ba1d8bdccc047 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Sun, 21 Apr 2013 08:24:52 +0200 Subject: HOPKINS: Enlarge _lockedAnims array to avoid potential out of bound access. CID 1004012 --- engines/hopkins/graphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/hopkins/graphics.cpp') 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; } -- cgit v1.2.3