From a9a4e664f646f7ba7f4939bf5d3c1163b6845ae9 Mon Sep 17 00:00:00 2001 From: Spoike Date: Wed, 3 Dec 2008 01:57:02 +0000 Subject: [PATCH] Whoops. Don't crash on quit. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3082 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/common/net_wins.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engine/common/net_wins.c b/engine/common/net_wins.c index fe6a26102..22186b109 100644 --- a/engine/common/net_wins.c +++ b/engine/common/net_wins.c @@ -1368,6 +1368,8 @@ qboolean FTENET_AddToCollection(ftenet_connections_t *col, char *name, char *add void FTENET_CloseCollection(ftenet_connections_t *col) { int i; + if (!col) + return; for (i = 0; i < MAX_CONNECTIONS; i++) { if (col->conn[i])