From 82ebce20bd16183c25e8f535eddc77a2a79b97c7 Mon Sep 17 00:00:00 2001 From: Dominik Tugend Date: Fri, 29 May 2015 19:45:43 +0200 Subject: [PATCH] Addresses ValveSoftware/halflife#1622 Fixes crashes in sound.cpp for dmc and ricochet mods. --- dmc/dlls/sound.cpp | 2 +- ricochet/dlls/sound.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;