From 23157a6450dfb95d3200d6405c7524352f110e71 Mon Sep 17 00:00:00 2001 From: whiterandrek Date: Sun, 13 May 2018 11:19:32 +0300 Subject: PINK: fix for Pokus game --- engines/pink/objects/sequences/sequence.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'engines') 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()) -- cgit v1.2.3