Skip to content

Commit

Permalink
Fix MSVC warning C4701
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Nov 8, 2021
1 parent abf0bec commit e1937a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3601,7 +3601,7 @@ static bool gameLoad(const char *fileName)
{
char CurrentFileName[PATH_MAX];
strcpy(CurrentFileName, fileName);
GAME_SAVEHEADER fileHeader;
GAME_SAVEHEADER fileHeader = {};
auto gamJsonSave = readGamJson(fileName);
debug(LOG_SAVEGAME, "loading %s", fileName);
PHYSFS_file *fileHandle = openLoadFile(fileName, true);
Expand Down

0 comments on commit e1937a9

Please sign in to comment.