aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;