aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2015-05-01 14:54:28 -1000
committerPaul Gilbert2015-05-01 14:54:28 -1000
commit5b8fb0cf9097d3d288a3afe0615b6dffbaef3ea0 (patch)
tree74819220d8e19c56bb8979e6c5eefdc4a90ae255 /engines
parenta4662b4699286a948644a8018d343f96e28ee019 (diff)
downloadscummvm-rg350-5b8fb0cf9097d3d288a3afe0615b6dffbaef3ea0.tar.gz
scummvm-rg350-5b8fb0cf9097d3d288a3afe0615b6dffbaef3ea0.tar.bz2
scummvm-rg350-5b8fb0cf9097d3d288a3afe0615b6dffbaef3ea0.zip
SHERLOCK: Fix crash unlocking desk drawer in Palmist
Diffstat (limited to 'engines')
-rw-r--r--engines/sherlock/objects.cpp7
-rw-r--r--engines/sherlock/objects.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/engines/sherlock/objects.cpp b/engines/sherlock/objects.cpp
index 3cec0d800a..ff8f6393db 100644
--- a/engines/sherlock/objects.cpp
+++ b/engines/sherlock/objects.cpp
@@ -377,6 +377,13 @@ void ActionType::synchronize(Common::SeekableReadStream &s) {
/*----------------------------------------------------------------*/
+UseType::UseType() {
+ _cAnimNum = _cAnimSpeed = 0;
+ _useFlag = 0;
+ _dFlag[0] = 0;
+ _lFlag[0] = _lFlag[1] = 0;
+}
+
void UseType::synchronize(Common::SeekableReadStream &s) {
char buffer[12];
diff --git a/engines/sherlock/objects.h b/engines/sherlock/objects.h
index e2b53ec541..10b491e5d7 100644
--- a/engines/sherlock/objects.h
+++ b/engines/sherlock/objects.h
@@ -160,6 +160,7 @@ struct UseType {
int _lFlag[2];
Common::String _target;
+ UseType();
void synchronize(Common::SeekableReadStream &s);
};