diff options
author | Martin Gerhardy | 2018-09-14 19:04:40 +0200 |
---|---|---|
committer | D G Turner | 2018-09-15 00:01:47 +0100 |
commit | 32c8ea021c313ba3582af6c230f94b7ca76e692e (patch) | |
tree | 669afd59300f643d154684c91175761837f9e943 /engines/gob | |
parent | 360e1e97c9c5452431170d2724b3840b817aa5f8 (diff) | |
download | scummvm-rg350-32c8ea021c313ba3582af6c230f94b7ca76e692e.tar.gz scummvm-rg350-32c8ea021c313ba3582af6c230f94b7ca76e692e.tar.bz2 scummvm-rg350-32c8ea021c313ba3582af6c230f94b7ca76e692e.zip |
GOB: fixed missing member initialization
Diffstat (limited to 'engines/gob')
-rw-r--r-- | engines/gob/resources.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/engines/gob/resources.cpp b/engines/gob/resources.cpp index dbed825977..6eedab1e60 100644 --- a/engines/gob/resources.cpp +++ b/engines/gob/resources.cpp @@ -98,7 +98,10 @@ Common::SeekableReadStream *TextItem::stream() const { Resources::TOTResourceTable::TOTResourceTable() { - items = 0; + itemsCount = 0; + unknown = (byte)0; + items = NULL; + dataOffset = 0u; } Resources::TOTResourceTable::~TOTResourceTable() { @@ -118,9 +121,11 @@ Resources::EXTResourceTable::~EXTResourceTable() { Resources::TOTTextTable::TOTTextTable() { - items = 0; - data = 0; - needFree = false; + needFree = false; + itemsCount = 0; + data = (byte)0; + size = 0; + items = NULL; } Resources::TOTTextTable::~TOTTextTable() { |