aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwhiterandrek2018-06-19 20:17:18 +0300
committerEugene Sandulenko2018-06-28 23:51:32 +0200
commit0835b0fee134ae5b687bb2e609d966b0692eb496 (patch)
tree2375aa3112763bfc1c82d3ae1ac6f61bc81fb6b8
parentb1d516276a2443d33f80ce214343e025c7f9a2fa (diff)
downloadscummvm-rg350-0835b0fee134ae5b687bb2e609d966b0692eb496.tar.gz
scummvm-rg350-0835b0fee134ae5b687bb2e609d966b0692eb496.tar.bz2
scummvm-rg350-0835b0fee134ae5b687bb2e609d966b0692eb496.zip
PINK: fix SeqTimer updating when actor isn't found
-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();
}