Skip to content

Commit

Permalink
Fix uninitialized filePos for ricochet
Browse files Browse the repository at this point in the history
  • Loading branch information
shawns-valve committed Oct 2, 2024
1 parent 2c78e5d commit a4fe2cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dlls/sound.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1541,7 +1541,8 @@ void TEXTURETYPE_Init()
char buffer[512];
int i, j;
byte *pMemFile;
int fileSize, filePos = 0;
int fileSize = 0;
int filePos = 0;

if (fTextureTypeInit)
return;
Expand Down
3 changes: 2 additions & 1 deletion ricochet/dlls/sound.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1544,7 +1544,8 @@ void TEXTURETYPE_Init()
char buffer[512];
int i, j;
byte *pMemFile;
int fileSize, filePos;
int fileSize = 0;
int filePos = 0;

if (fTextureTypeInit)
return;
Expand Down

0 comments on commit a4fe2cb

Please sign in to comment.