aboutsummaryrefslogtreecommitdiff
path: root/engines/pink/objects/actions
diff options
context:
space:
mode:
authorAndrei Prykhodko2018-06-30 15:18:03 +0300
committerAndrei Prykhodko2018-06-30 15:18:03 +0300
commit5f0fec7de2f9f2df3124aaa2388edbc3d03d2e37 (patch)
tree37b8c7d29ab9d71c13b68e32d37e083a945efa8b /engines/pink/objects/actions
parentef9892dbd4c15f30586c8532e4e6ab56215b1582 (diff)
downloadscummvm-rg350-5f0fec7de2f9f2df3124aaa2388edbc3d03d2e37.tar.gz
scummvm-rg350-5f0fec7de2f9f2df3124aaa2388edbc3d03d2e37.tar.bz2
scummvm-rg350-5f0fec7de2f9f2df3124aaa2388edbc3d03d2e37.zip
PINK: fixed various PDA bugs
Diffstat (limited to 'engines/pink/objects/actions')
-rw-r--r--engines/pink/objects/actions/action_cel.cpp1
-rw-r--r--engines/pink/objects/actions/action_cel.h4
2 files changed, 3 insertions, 2 deletions
diff --git a/engines/pink/objects/actions/action_cel.cpp b/engines/pink/objects/actions/action_cel.cpp
index 600eb88e27..5abc9787b9 100644
--- a/engines/pink/objects/actions/action_cel.cpp
+++ b/engines/pink/objects/actions/action_cel.cpp
@@ -65,6 +65,7 @@ void ActionCEL::start() {
void ActionCEL::end() {
_actor->getPage()->getGame()->getDirector()->removeSprite(this);
+ _decoder.close();
}
void ActionCEL::pause(bool paused) {
diff --git a/engines/pink/objects/actions/action_cel.h b/engines/pink/objects/actions/action_cel.h
index 07e16e7c03..2a88350458 100644
--- a/engines/pink/objects/actions/action_cel.h
+++ b/engines/pink/objects/actions/action_cel.h
@@ -38,8 +38,6 @@ public:
bool initPalette(Director *director) override;
- void loadDecoder();
-
void start() override;
void end() override;
@@ -62,6 +60,8 @@ protected:
void setFrame(uint frame);
void decodeNext();
+ void loadDecoder();
+
CelDecoder _decoder;
Common::String _fileName;
Common::Rect _bounds;