From 0835b0fee134ae5b687bb2e609d966b0692eb496 Mon Sep 17 00:00:00 2001 From: whiterandrek Date: Tue, 19 Jun 2018 20:17:18 +0300 Subject: PINK: fix SeqTimer updating when actor isn't found --- engines/pink/objects/sequences/seq_timer.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'engines/pink') diff --git a/engines/pink/objects/sequences/seq_timer.cpp b/engines/pink/objects/sequences/seq_timer.cpp index 7270c1a225..8ac43fbe3a 100644 --- a/engines/pink/objects/sequences/seq_timer.cpp +++ b/engines/pink/objects/sequences/seq_timer.cpp @@ -53,8 +53,7 @@ void SeqTimer::update() { _updatesToMessage = _range ? _period + rnd.getRandomNumber(_range) : _period; Actor *actor = _sequencer->_page->findActor(_actor); - assert(actor); - if (!_sequencer->findMainSequenceActorState(actor->getName()) && + if (actor && !_sequencer->findMainSequenceActorState(actor->getName()) && !_sequencer->findParralelSequenceActorState(actor->getName())) { actor->onTimerMessage(); } -- cgit v1.2.3