From d55dfcdb1dd2dd834bb1598709d6dba97bec4eaf Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 27 Jun 2014 22:05:11 -0700 Subject: [PATCH] Pass the correct size to LoadSoundVoc --- src/s_sound.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/s_sound.cpp b/src/s_sound.cpp index a54921500..9f4c83e01 100644 --- a/src/s_sound.cpp +++ b/src/s_sound.cpp @@ -1322,7 +1322,7 @@ sfxinfo_t *S_LoadSound(sfxinfo_t *sfx) // If the sound is voc, use the custom loader. if (strncmp ((const char *)sfxstart, "Creative Voice File", 19) == 0) { - sfx->data = GSnd->LoadSoundVoc(sfxstart, len); + sfx->data = GSnd->LoadSoundVoc(sfxstart, size); } // If the sound is raw, just load it as such. // Otherwise, try the sound as DMX format.