From dfab0ee6d079b5c94ef5e87c062c96197d7ab3cc Mon Sep 17 00:00:00 2001 From: Kari Salminen Date: Sat, 24 Jan 2009 05:02:08 +0000 Subject: Initialize variables that might not be initialized but still used later on line 422 in a debug function call (Fixes MSVC's warnings about 'potentially uninitialized local variable'). svn-id: r36031 --- engines/made/database.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines') diff --git a/engines/made/database.cpp b/engines/made/database.cpp index f541047ca9..7656d9c5c4 100644 --- a/engines/made/database.cpp +++ b/engines/made/database.cpp @@ -389,8 +389,8 @@ void GameDatabaseV2::load(Common::SeekableReadStream &sourceS) { if (strncmp(header, "ADVSYS", 6)) warning ("Unexpected database header, expected ADVSYS"); - uint32 textOffs, objectsOffs, objectsSize, textSize; - uint16 objectCount, varObjectCount; + uint32 textOffs = 0, objectsOffs = 0, objectsSize = 0, textSize; + uint16 objectCount = 0, varObjectCount = 0; sourceS.readUint16LE(); // skip sub-version sourceS.skip(18); // skip program name -- cgit v1.2.3