aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authoruruk2014-06-09 23:19:57 +0200
committeruruk2014-06-09 23:20:46 +0200
commit76fa66fc8ce531d3391a81259e13474b429277f5 (patch)
tree917b4d01b7df0f5bc10b7a631f4902af6769106b /engines
parent5d80601c06c02db12147b64c5c17feeaf5565bc8 (diff)
downloadscummvm-rg350-76fa66fc8ce531d3391a81259e13474b429277f5.tar.gz
scummvm-rg350-76fa66fc8ce531d3391a81259e13474b429277f5.tar.bz2
scummvm-rg350-76fa66fc8ce531d3391a81259e13474b429277f5.zip
CGE2: Fix endless loop regarding kCmdWait.
Diffstat (limited to 'engines')
-rw-r--r--engines/cge2/cge2_main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/cge2/cge2_main.cpp b/engines/cge2/cge2_main.cpp
index 20b16fa227..764bdde5d8 100644
--- a/engines/cge2/cge2_main.cpp
+++ b/engines/cge2/cge2_main.cpp
@@ -538,7 +538,7 @@ void CGE2Engine::tick() {
spr->tick();
}
if (_waitRef) {
- if (_waitRef == _sprite->_ref)
+ if (_waitRef == spr->_ref)
if (spr->seqTest(_waitSeq))
_waitRef = 0;
}