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
This commit is contained in:
Kari Salminen 2009-01-24 05:02:08 +00:00
parent a8ae95cc10
commit dfab0ee6d0

View file

@ -389,8 +389,8 @@ void GameDatabaseV2::load(Common::SeekableReadStream &sourceS) {
if (strncmp(header, "ADVSYS", 6)) if (strncmp(header, "ADVSYS", 6))
warning ("Unexpected database header, expected ADVSYS"); warning ("Unexpected database header, expected ADVSYS");
uint32 textOffs, objectsOffs, objectsSize, textSize; uint32 textOffs = 0, objectsOffs = 0, objectsSize = 0, textSize;
uint16 objectCount, varObjectCount; uint16 objectCount = 0, varObjectCount = 0;
sourceS.readUint16LE(); // skip sub-version sourceS.readUint16LE(); // skip sub-version
sourceS.skip(18); // skip program name sourceS.skip(18); // skip program name