aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2015-05-03 18:17:50 -1000
committerPaul Gilbert2015-05-03 18:17:50 -1000
commit32d46dc00ab82bebc46f57dba8eb1be7e226d6f2 (patch)
tree641e53d873a1fca019a9cc024aceda08f0f2fd80
parentc5d5694883a48974cf85f5d2a854d3a7c5d8b1d4 (diff)
downloadscummvm-rg350-32d46dc00ab82bebc46f57dba8eb1be7e226d6f2.tar.gz
scummvm-rg350-32d46dc00ab82bebc46f57dba8eb1be7e226d6f2.tar.bz2
scummvm-rg350-32d46dc00ab82bebc46f57dba8eb1be7e226d6f2.zip
SHERLOCK: Fix crash when moving crates
-rw-r--r--engines/sherlock/talk.cpp8
-rw-r--r--engines/sherlock/talk.h2
2 files changed, 10 insertions, 0 deletions
diff --git a/engines/sherlock/talk.cpp b/engines/sherlock/talk.cpp
index 9af8a29c1e..953f884625 100644
--- a/engines/sherlock/talk.cpp
+++ b/engines/sherlock/talk.cpp
@@ -26,6 +26,14 @@
namespace Sherlock {
+SequenceEntry::SequenceEntry() {
+ _objNum = 0;
+ _frameNumber = 0;
+ _seqTo = 0;
+}
+
+/*----------------------------------------------------------------*/
+
/**
* Load the data for a single statement within a talk file
*/
diff --git a/engines/sherlock/talk.h b/engines/sherlock/talk.h
index d545d31351..f96c3176d2 100644
--- a/engines/sherlock/talk.h
+++ b/engines/sherlock/talk.h
@@ -77,6 +77,8 @@ struct SequenceEntry {
Common::Array<byte> _sequences;
int _frameNumber;
int _seqTo;
+
+ SequenceEntry();
};
struct ScriptStackEntry {