diff options
author | Andrey Nazarov <skuller@skuller.net> | 2007-09-22 18:44:50 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2007-09-22 18:44:50 +0000 |
commit | 8cb1f3121ea0120217d28d48221e9bf6529d073c (patch) | |
tree | 97584c3623890d16cd169f41fa04450f36ba97b3 /source/mvd_parse.c | |
parent | 36432ed920ff260f4904aab1fa816b2f34c592b4 (diff) |
Fixed nasty bug instroduced by packetized sound message handling due to
uninitialized memory access. Server crashed randomly when someone disconnected.
Added z_perturb cvar to help debug and prevent such problems.
Diffstat (limited to 'source/mvd_parse.c')
-rw-r--r-- | source/mvd_parse.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/mvd_parse.c b/source/mvd_parse.c index dd24697..88f5f4a 100644 --- a/source/mvd_parse.c +++ b/source/mvd_parse.c @@ -532,6 +532,7 @@ static void MVD_ParseSound( mvd_t *mvd, int extrabits ) { msg = LIST_FIRST( sound_packet_t, &cl->freemsg, entry ); + msg->cursize = 0; msg->flags = flags; msg->index = index; msg->volume = volume; |