aboutsummaryrefslogtreecommitdiff
path: root/engines/pink/objects/sequences
diff options
context:
space:
mode:
authorAndrei Prykhodko2018-06-30 23:49:27 +0300
committerAndrei Prykhodko2018-06-30 23:49:27 +0300
commit0a6993a09b9efd9cd17243e51aa64522bec78b4e (patch)
tree1344494d5961dc97e6149e8cd3eba543df980a0a /engines/pink/objects/sequences
parent22f6c6639381adf3dfad45ba1cf430dd182e6322 (diff)
downloadscummvm-rg350-0a6993a09b9efd9cd17243e51aa64522bec78b4e.tar.gz
scummvm-rg350-0a6993a09b9efd9cd17243e51aa64522bec78b4e.tar.bz2
scummvm-rg350-0a6993a09b9efd9cd17243e51aa64522bec78b4e.zip
PINK: fixed uninitialized fields
Diffstat (limited to 'engines/pink/objects/sequences')
-rw-r--r--engines/pink/objects/sequences/seq_timer.cpp3
-rw-r--r--engines/pink/objects/sequences/sequence.h3
-rw-r--r--engines/pink/objects/sequences/sequence_item.h3
3 files changed, 8 insertions, 1 deletions
diff --git a/engines/pink/objects/sequences/seq_timer.cpp b/engines/pink/objects/sequences/seq_timer.cpp
index c1eff0765f..5342dbff4a 100644
--- a/engines/pink/objects/sequences/seq_timer.cpp
+++ b/engines/pink/objects/sequences/seq_timer.cpp
@@ -32,7 +32,8 @@
namespace Pink {
SeqTimer::SeqTimer()
- : _updatesToMessage(0) {}
+ : _sequencer(nullptr), _updatesToMessage(0), _period(0),
+ _range(0) {}
void SeqTimer::deserialize(Archive &archive) {
_actor = archive.readString();
diff --git a/engines/pink/objects/sequences/sequence.h b/engines/pink/objects/sequences/sequence.h
index 7ebb95ce4c..b07e7508fd 100644
--- a/engines/pink/objects/sequences/sequence.h
+++ b/engines/pink/objects/sequences/sequence.h
@@ -72,6 +72,9 @@ protected:
class SequenceAudio : public Sequence {
public:
+ SequenceAudio()
+ : _leader(nullptr) {}
+
void deserialize(Archive &archive) override;
void toConsole() override;
diff --git a/engines/pink/objects/sequences/sequence_item.h b/engines/pink/objects/sequences/sequence_item.h
index 4005331783..554fd73819 100644
--- a/engines/pink/objects/sequences/sequence_item.h
+++ b/engines/pink/objects/sequences/sequence_item.h
@@ -54,6 +54,9 @@ public:
class SequenceItemLeaderAudio : public SequenceItemLeader {
public:
+ SequenceItemLeaderAudio()
+ : _sample(0) {}
+
void deserialize(Archive &archive) override;
void toConsole() override;