From f9b4fe09dad0cbf94e08a39aaff3e27b020d8a6b Mon Sep 17 00:00:00 2001 From: Strangerke Date: Sun, 20 Jan 2013 22:46:00 +0100 Subject: HOPKINS: Fix regression introduced in 5678fbd3212f3d758863ec2338066797718b8f88: Glitch while speaking. Thanks to eriktorbjorn for noticing and bisecting the problem --- engines/hopkins/objects.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/engines/hopkins/objects.cpp b/engines/hopkins/objects.cpp index 2ddf24c75c..d94f838422 100644 --- a/engines/hopkins/objects.cpp +++ b/engines/hopkins/objects.cpp @@ -1016,9 +1016,9 @@ void ObjectsManager::displayBobAnim() { } while (idx != 35); if (!PERSO_ON && BOBTOUS) { - for (int v26 = 0; v26 != 35; v26++) { - if (_vm->_globals._bob[v26].field0 == 10 && !_vm->_globals._bob[v26]._disabledAnimationFl) - _vm->_globals._bob[v26].field1C = true; + for (int i = 0; i < 35; i++) { + if (_vm->_globals._bob[i].field0 == 10 && !_vm->_globals._bob[i]._disabledAnimationFl) + _vm->_globals._bob[i].field1C = true; } } @@ -1056,7 +1056,7 @@ void ObjectsManager::displayBobAnim() { } } - for (int i = 1; i < 25; i++) { + for (int i = 1; i < 35; i++) { _vm->_globals._bob[i]._oldY = 0; if (_vm->_globals._bob[i].field0 == 10 && !_vm->_globals._bob[i]._disabledAnimationFl && _vm->_globals._bob[i].field1C) { CALCUL_BOB(i); -- cgit v1.2.3