Skip to content

Commit

Permalink
close savegame file pointer if string reading fails
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiangreffrath committed Oct 24, 2023
1 parent 2473a6e commit 921f311
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/m_menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1059,6 +1059,7 @@ void M_ReadSaveStrings(void)
{
strcpy(&savegamestrings[i][0],s_EMPTYSTRING);
LoadMenu[i].status = 0;
fclose(fp);
continue;
}

Expand Down

0 comments on commit 921f311

Please sign in to comment.