From 32c8ea021c313ba3582af6c230f94b7ca76e692e Mon Sep 17 00:00:00 2001 From: Martin Gerhardy Date: Fri, 14 Sep 2018 19:04:40 +0200 Subject: GOB: fixed missing member initialization --- engines/gob/resources.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'engines/gob') 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() { -- cgit v1.2.3