aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/sequences_lok.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2013-10-07 23:39:57 +0300
committerEugene Sandulenko2013-10-08 00:11:18 +0300
commit669cb76de4bb63511d46c3c50e1f486f1dbcc401 (patch)
tree705ac95510b8c09dd33c41cef2632ed821399abc /engines/kyra/sequences_lok.cpp
parentd71b48b120870d588ce3331a74ce6bb138eacc59 (diff)
downloadscummvm-rg350-669cb76de4bb63511d46c3c50e1f486f1dbcc401.tar.gz
scummvm-rg350-669cb76de4bb63511d46c3c50e1f486f1dbcc401.tar.bz2
scummvm-rg350-669cb76de4bb63511d46c3c50e1f486f1dbcc401.zip
KYRA: Fixed missing curly brackets. CID 1003639
Although I did not consult with disassembly, judging from the game logic _unkEndSeqVar4 is used for switching certain Malcolm frames, and it is apparent that this should happen only under condition, not always.
Diffstat (limited to 'engines/kyra/sequences_lok.cpp')
-rw-r--r--engines/kyra/sequences_lok.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/kyra/sequences_lok.cpp b/engines/kyra/sequences_lok.cpp
index 2a2f9a5493..51f1ea51cf 100644
--- a/engines/kyra/sequences_lok.cpp
+++ b/engines/kyra/sequences_lok.cpp
@@ -1722,9 +1722,10 @@ int KyraEngine_LoK::handleBeadState() {
_screen->addBitBlitRect(_beadState1.x, _beadState1.y, _beadState1.width2, _beadState1.height);
++_beadState1.tableIndex;
- if (_beadState1.tableIndex > 24)
+ if (_beadState1.tableIndex > 24) {
_beadState1.tableIndex = 0;
_unkEndSeqVar4 = 1;
+ }
if (_system->getMillis() > _beadStateTimer2 && _malcolmFlag == 7 && !_unkAmuletVar && !_text->printed()) {
snd_playSoundEffect(0x0B);
if (_currentCharacter->x1 > 233 && _currentCharacter->x1 < 305 && _currentCharacter->y1 > 85 && _currentCharacter->y1 < 105 &&