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:
parent
a8ae95cc10
commit
dfab0ee6d0
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue