From e435414b4b8f00fa726d76109d26c7f7b1bfaee3 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sat, 10 Nov 2001 22:55:10 +0000 Subject: [PATCH] fix a case where the userinfo is 0 that I was not expecting. This fixes the crash on reconnect --- qw/source/sv_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qw/source/sv_main.c b/qw/source/sv_main.c index 77640cab6..2e5e5d538 100644 --- a/qw/source/sv_main.c +++ b/qw/source/sv_main.c @@ -324,7 +324,8 @@ SV_DropClient (client_t *drop) SVfloat (drop->edict, frags) = 0; drop->name[0] = 0; - Info_Destroy (drop->userinfo); + if (drop->userinfo) + Info_Destroy (drop->userinfo); drop->userinfo = 0; // send notification to all remaining clients