aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/pink/objects/sequences/seq_timer.cpp3
1 files changed, 1 insertions, 2 deletions
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();
}