diff --git a/Ja2/SaveLoadGame.cpp b/Ja2/SaveLoadGame.cpp index 98c204bf..a28e812b 100644 --- a/Ja2/SaveLoadGame.cpp +++ b/Ja2/SaveLoadGame.cpp @@ -595,7 +595,7 @@ BOOLEAN LBENODE::Load( HWFILE hFile ) //when combined with copy assignment which makes a new LBENODE gLastLBEUniqueID = uniqueID + 1; } - int size; + int size = 0; if ( !FileRead( hFile, &size, sizeof(int), &uiNumBytesRead ) ) { return(FALSE); @@ -671,7 +671,7 @@ static BOOLEAN LoadArmsDealerInventoryFromSavedGameFile( HWFILE hFile ) if (guiCurrentSaveGameVersion >= NIV_SAVEGAME_DATATYPE_CHANGE) { - int dealers; + int dealers = 0; if (!FileRead( hFile, &dealers, sizeof( int ), &uiNumBytesRead )) { return( FALSE ); @@ -699,7 +699,7 @@ static BOOLEAN LoadArmsDealerInventoryFromSavedGameFile( HWFILE hFile ) //loop through all the dealers inventories for( ubArmsDealer=0; ubArmsDealer