aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2019-11-19 23:50:40 +0100
committerEugene Sandulenko2019-11-19 23:50:40 +0100
commit62069d33c81836ab0e7ed70e128f3f8f6f3e39d9 (patch)
tree0a24b0a47b67cd9d9d16bdd6fad2182c8c8faa55
parent79d636ba8a34a3dd5942cd61933940bbc4c87541 (diff)
downloadscummvm-rg350-62069d33c81836ab0e7ed70e128f3f8f6f3e39d9.tar.gz
scummvm-rg350-62069d33c81836ab0e7ed70e128f3f8f6f3e39d9.tar.bz2
scummvm-rg350-62069d33c81836ab0e7ed70e128f3f8f6f3e39d9.zip
PINK: Fix crash when switching the countries in selector
-rw-r--r--engines/pink/objects/actions/action_play_with_sfx.cpp2
1 files changed, 1 insertions, 1 deletions
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();
}