Pass the correct size to LoadSoundVoc

This commit is contained in:
Chris Robinson 2014-06-27 22:05:11 -07:00
parent 6f8545e694
commit d55dfcdb1d

View file

@ -1322,7 +1322,7 @@ sfxinfo_t *S_LoadSound(sfxinfo_t *sfx)
// If the sound is voc, use the custom loader. // If the sound is voc, use the custom loader.
if (strncmp ((const char *)sfxstart, "Creative Voice File", 19) == 0) 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. // If the sound is raw, just load it as such.
// Otherwise, try the sound as DMX format. // Otherwise, try the sound as DMX format.