summaryrefslogtreecommitdiff
path: root/src/client/snd_adpcm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/snd_adpcm.c')
-rw-r--r--src/client/snd_adpcm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/snd_adpcm.c b/src/client/snd_adpcm.c
index 89e68f42..4e138726 100644
--- a/src/client/snd_adpcm.c
+++ b/src/client/snd_adpcm.c
@@ -310,7 +310,7 @@ void S_AdpcmEncodeSound( sfx_t *sfx, short *samples ) {
newchunk = SND_malloc();
if (sfx->soundData == NULL) {
sfx->soundData = newchunk;
- } else {
+ } else if (chunk != NULL) {
chunk->next = newchunk;
}
chunk = newchunk;