diff --git a/dmc/dlls/sound.cpp b/dmc/dlls/sound.cpp index 5d2790e..5da6303 100644 --- a/dmc/dlls/sound.cpp +++ b/dmc/dlls/sound.cpp @@ -1539,7 +1539,7 @@ void TEXTURETYPE_Init() char buffer[512]; int i, j; byte *pMemFile; - int fileSize, filePos; + int fileSize, filePos = 0; if (fTextureTypeInit) return; diff --git a/ricochet/dlls/sound.cpp b/ricochet/dlls/sound.cpp index ab3fb8b..e90e5f2 100644 --- a/ricochet/dlls/sound.cpp +++ b/ricochet/dlls/sound.cpp @@ -1544,7 +1544,7 @@ void TEXTURETYPE_Init() char buffer[512]; int i, j; byte *pMemFile; - int fileSize, filePos; + int fileSize, filePos = 0; if (fTextureTypeInit) return;