mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-24 11:36:22 +00:00
PINK: fix SeqTimer updating when actor isn't found
This commit is contained in:
parent
b1d516276a
commit
0835b0fee1
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user