aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorwhiterandrek2018-05-13 11:19:32 +0300
committerEugene Sandulenko2018-06-28 23:51:32 +0200
commit23157a6450dfb95d3200d6405c7524352f110e71 (patch)
tree1d9b109d71918ffd0cfe114ccd41e2c4d7dee0ab /engines
parent0103b904a8394d084fd99d3c62a64723bd8aa3d5 (diff)
downloadscummvm-rg350-23157a6450dfb95d3200d6405c7524352f110e71.tar.gz
scummvm-rg350-23157a6450dfb95d3200d6405c7524352f110e71.tar.bz2
scummvm-rg350-23157a6450dfb95d3200d6405c7524352f110e71.zip
PINK: fix for Pokus game
Diffstat (limited to 'engines')
-rw-r--r--engines/pink/objects/sequences/sequence.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/engines/pink/objects/sequences/sequence.cpp b/engines/pink/objects/sequences/sequence.cpp
index b95605758c..577b310007 100644
--- a/engines/pink/objects/sequences/sequence.cpp
+++ b/engines/pink/objects/sequences/sequence.cpp
@@ -71,16 +71,12 @@ void Sequence::init(int unk) {
}
void Sequence::start(int unk) {
- if (_context->_nextItemIndex >= _items.size()){
+ if (_context->_nextItemIndex >= _items.size() || !_items[_context->_nextItemIndex]->execute(_context->_index, this, unk)){
debug("Sequence %s ended", _name.c_str());
end();
return;
}
- if (!_items[_context->_nextItemIndex]->execute(_context->_index, this, unk)){
- assert(0);
- }
-
uint i;
for (i = _context->_nextItemIndex + 1; i <_items.size(); ++i){
if (_items[i]->isLeader())