diff --git a/Quake/snd_mem.c b/Quake/snd_mem.c index 132820a13..80813c2a3 100644 --- a/Quake/snd_mem.c +++ b/Quake/snd_mem.c @@ -346,6 +346,13 @@ wavinfo_t GetWavinfo (const char *name, byte *wav, int wavlength) else info.samples = samples; + if (info.loopstart >= info.samples) + { + Con_Warning ("%s has loop start >= end\n", name); + info.loopstart = -1; + info.samples = samples; + } + info.dataofs = data_p - wav; return info;