diff options
author | Strangerke | 2013-10-30 00:46:52 +0100 |
---|---|---|
committer | Strangerke | 2013-10-30 00:46:52 +0100 |
commit | 42cc71fef0c7d2f153a90f7fd7e0ca7849c2be75 (patch) | |
tree | a2074699b071d3fdc62862bcb4e4df894d7b586c | |
parent | 0898bfd977668846f60195531d26a92ce9ac7f4e (diff) | |
download | scummvm-rg350-42cc71fef0c7d2f153a90f7fd7e0ca7849c2be75.tar.gz scummvm-rg350-42cc71fef0c7d2f153a90f7fd7e0ca7849c2be75.tar.bz2 scummvm-rg350-42cc71fef0c7d2f153a90f7fd7e0ca7849c2be75.zip |
TOON: Fix CID 1002427, 1002428, 1002429
-rw-r--r-- | engines/toon/picture.cpp | 5 | ||||
-rw-r--r-- | engines/toon/resource.cpp | 1 | ||||
-rw-r--r-- | engines/toon/resource.h | 1 | ||||
-rw-r--r-- | engines/toon/script.cpp | 2 |
4 files changed, 8 insertions, 1 deletions
diff --git a/engines/toon/picture.cpp b/engines/toon/picture.cpp index 65cc3a70e1..4927f50e08 100644 --- a/engines/toon/picture.cpp +++ b/engines/toon/picture.cpp @@ -134,6 +134,11 @@ bool Picture::loadPicture(const Common::String &file) { Picture::Picture(ToonEngine *vm) : _vm(vm) { _data = NULL; _palette = NULL; + + _width = 0; + _height = 0; + _paletteEntries = 0; + _useFullPalette = false; } Picture::~Picture() { diff --git a/engines/toon/resource.cpp b/engines/toon/resource.cpp index 2d419ec027..ffcabbd348 100644 --- a/engines/toon/resource.cpp +++ b/engines/toon/resource.cpp @@ -285,6 +285,7 @@ void PakFile::close() { } PakFile::PakFile() { + _numFiles = 0; } PakFile::~PakFile() { diff --git a/engines/toon/resource.h b/engines/toon/resource.h index c80ac2216e..b432a1d335 100644 --- a/engines/toon/resource.h +++ b/engines/toon/resource.h @@ -53,7 +53,6 @@ protected: uint32 _numFiles; Common::Array<File> _files; - Common::File *_fileHandle; }; class ToonEngine; diff --git a/engines/toon/script.cpp b/engines/toon/script.cpp index 69ae727bb5..3e6738f479 100644 --- a/engines/toon/script.cpp +++ b/engines/toon/script.cpp @@ -59,6 +59,8 @@ EMCInterpreter::EMCInterpreter(ToonEngine *vm) : _vm(vm), _scriptData(0), _filen }; _opcodes = opcodes; #undef OPCODE + + _parameter = 0; } EMCInterpreter::~EMCInterpreter() { |