From 62069d33c81836ab0e7ed70e128f3f8f6f3e39d9 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Tue, 19 Nov 2019 23:50:40 +0100 Subject: PINK: Fix crash when switching the countries in selector --- engines/pink/objects/actions/action_play_with_sfx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/pink/objects/actions/action_play_with_sfx.cpp b/engines/pink/objects/actions/action_play_with_sfx.cpp index 0ebb869411..53f4316e81 100644 --- a/engines/pink/objects/actions/action_play_with_sfx.cpp +++ b/engines/pink/objects/actions/action_play_with_sfx.cpp @@ -76,7 +76,7 @@ void ActionPlayWithSfx::end() { ActionCEL::end(); debugC(6, kPinkDebugActions, "ActionPlayWithSfx %s of Actor %s is ended", _name.c_str(), _actor->getName().c_str()); // original bug fix - if (_actor->getPage()->getSequencer()->isSkipping()) { + if (_actor->getPage()->getSequencer() && _actor->getPage()->getSequencer()->isSkipping()) { for (uint i = 0; i < _sfxArray.size(); ++i) { _sfxArray[i]->end(); } -- cgit v1.2.3