summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Howard2011-09-12 21:30:26 +0000
committerSimon Howard2011-09-12 21:30:26 +0000
commitfb364d533b2a6510611ca3edf533176204a1fd59 (patch)
treefe9d4b505f249e97ce461d9f9bf8d87ac95163a0 /src
parentefd15d965dee947a04727bb62f4e2092cf28732f (diff)
downloadchocolate-doom-fb364d533b2a6510611ca3edf533176204a1fd59.tar.gz
chocolate-doom-fb364d533b2a6510611ca3edf533176204a1fd59.tar.bz2
chocolate-doom-fb364d533b2a6510611ca3edf533176204a1fd59.zip
Fix bug in doubly-linked list implementation.
Subversion-branch: /branches/strife-branch Subversion-revision: 2368
Diffstat (limited to 'src')
-rw-r--r--src/i_sdlsound.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/i_sdlsound.c b/src/i_sdlsound.c
index e3118a82..4169a921 100644
--- a/src/i_sdlsound.c
+++ b/src/i_sdlsound.c
@@ -101,6 +101,10 @@ static void AllocatedSoundLink(allocated_sound_t *snd)
{
allocated_sounds_tail = snd;
}
+ else
+ {
+ snd->next->prev = snd;
+ }
}
// Unlink a sound from the linked list.