aboutsummaryrefslogtreecommitdiffstats
path: root/code/client/snd_codec_wav.c
diff options
context:
space:
mode:
Diffstat (limited to 'code/client/snd_codec_wav.c')
-rw-r--r--code/client/snd_codec_wav.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/code/client/snd_codec_wav.c b/code/client/snd_codec_wav.c
index fde6a17..a60f3da 100644
--- a/code/client/snd_codec_wav.c
+++ b/code/client/snd_codec_wav.c
@@ -91,7 +91,7 @@ static int S_FindRIFFChunk( fileHandle_t f, char *chunk ) {
if( !Q_strncmp( name, chunk, 4 ) )
return len;
- len = (len + 1 ) & ~1; // pad to word boundary
+ len = PAD( len, 2 );
// Not the right chunk - skip it
FS_Seek( f, len, FS_SEEK_CUR );