Remove a "cheap fix" from multivoc that is no longer needed and should never have been needed in the first place

git-svn-id: https://svn.eduke32.com/eduke32@7360 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2019-03-02 23:20:56 +00:00
parent 7414f29348
commit c757725e65

View file

@ -137,9 +137,7 @@ const char *MV_ErrorString(int32_t ErrorNumber)
static bool MV_Mix(VoiceNode *voice, int const buffer) static bool MV_Mix(VoiceNode *voice, int const buffer)
{ {
/* cheap fix for a crash under 64-bit linux */ if (voice->length == 0 && voice->GetSound(voice) != KeepPlaying)
/* v v v v */
if (voice->length == 0 && (voice->GetSound == NULL || voice->GetSound(voice) != KeepPlaying))
return false; return false;
int32_t length = MV_MIXBUFFERSIZE; int32_t length = MV_MIXBUFFERSIZE;