Skip to content

Commit

Permalink
PINK: fix for Pokus game
Browse files Browse the repository at this point in the history
  • Loading branch information
voltya authored and sev- committed Jun 28, 2018
1 parent 0103b90 commit 23157a6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions engines/pink/objects/sequences/sequence.cpp
Expand Up @@ -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())
Expand Down

0 comments on commit 23157a6

Please sign in to comment.