mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-22 11:22:18 -04:00
fix zero length sounds (#1315)
* fix zero length sounds DSSAWUP sound in "Eviternity II RC1.wad" * better fix * another variant
This commit is contained in:
parent
b8c0cebc6d
commit
626021e0eb
@ -589,7 +589,7 @@ boolean I_OAL_CacheSound(sfxinfo_t *sfx)
|
||||
lumplen = W_LumpLength(lumpnum);
|
||||
|
||||
// Check the header, and ensure this is a valid sound
|
||||
if (lumpdata[0] == 0x03 && lumpdata[1] == 0x00)
|
||||
if (lumplen > DMXHDRSIZE && lumpdata[0] == 0x03 && lumpdata[1] == 0x00)
|
||||
{
|
||||
freq = (lumpdata[3] << 8) | lumpdata[2];
|
||||
size = (lumpdata[7] << 24) | (lumpdata[6] << 16) |
|
||||
|
Loading…
x
Reference in New Issue
Block a user