aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwhiterandrek2018-06-09 16:03:49 +0300
committerEugene Sandulenko2018-06-28 23:51:32 +0200
commit4fd0ec3ff71614ecbf66ec7f8b414d99c74b1e32 (patch)
tree46d6e55db0229fecf3fffe3f4a5ab3068d7f6313
parenta76d86a3429c0203efe7932207bb48322eb92548 (diff)
downloadscummvm-rg350-4fd0ec3ff71614ecbf66ec7f8b414d99c74b1e32.tar.gz
scummvm-rg350-4fd0ec3ff71614ecbf66ec7f8b414d99c74b1e32.tar.bz2
scummvm-rg350-4fd0ec3ff71614ecbf66ec7f8b414d99c74b1e32.zip
PINK: fix ending of ActionCEL
-rw-r--r--engines/pink/objects/actions/action_cel.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/pink/objects/actions/action_cel.cpp b/engines/pink/objects/actions/action_cel.cpp
index 4596d5d1b5..4b03f68739 100644
--- a/engines/pink/objects/actions/action_cel.cpp
+++ b/engines/pink/objects/actions/action_cel.cpp
@@ -64,6 +64,8 @@ void ActionCEL::start() {
}
void ActionCEL::end() {
+ if (!_decoder)
+ return;
_actor->getPage()->getGame()->getDirector()->removeSprite(this);
delete _decoder;
_decoder = nullptr;