Skip to content

Commit

Permalink
Fix line count when parsing DEHACKED lumps/files
Browse files Browse the repository at this point in the history
  • Loading branch information
bradharding committed Nov 11, 2024
1 parent 4b089fe commit e53468c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/d_deh.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ extern byte *defined_codeptr_args;
// haleyjd: got rid of macros for MSVC
static char *dehfgets(char *str, int count, DEHFILE *fp)
{
linecount++;

if (fp->file)
return fgets(str, count, fp->file);
else if (fp->lump)
Expand Down

0 comments on commit e53468c

Please sign in to comment.