diff options
author | Kari Salminen | 2009-01-24 05:02:08 +0000 |
---|---|---|
committer | Kari Salminen | 2009-01-24 05:02:08 +0000 |
commit | dfab0ee6d079b5c94ef5e87c062c96197d7ab3cc (patch) | |
tree | 950d24e5424811bf6f28a77f62f4a56f29c61a8b /engines/made | |
parent | a8ae95cc10ce05329ca9d4c48fcfb06f615de58b (diff) | |
download | scummvm-rg350-dfab0ee6d079b5c94ef5e87c062c96197d7ab3cc.tar.gz scummvm-rg350-dfab0ee6d079b5c94ef5e87c062c96197d7ab3cc.tar.bz2 scummvm-rg350-dfab0ee6d079b5c94ef5e87c062c96197d7ab3cc.zip |
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
Diffstat (limited to 'engines/made')
-rw-r--r-- | engines/made/database.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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 |