diff options
author | Paul Gilbert | 2015-05-01 14:54:28 -1000 |
---|---|---|
committer | Paul Gilbert | 2015-05-01 14:54:28 -1000 |
commit | 5b8fb0cf9097d3d288a3afe0615b6dffbaef3ea0 (patch) | |
tree | 74819220d8e19c56bb8979e6c5eefdc4a90ae255 /engines | |
parent | a4662b4699286a948644a8018d343f96e28ee019 (diff) | |
download | scummvm-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.cpp | 7 | ||||
-rw-r--r-- | engines/sherlock/objects.h | 1 |
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); }; |