summaryrefslogtreecommitdiffstats
path: root/mbbsd/chess.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/chess.c')
-rw-r--r--mbbsd/chess.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mbbsd/chess.c b/mbbsd/chess.c
index d1ad3ad0..afe6dcd8 100644
--- a/mbbsd/chess.c
+++ b/mbbsd/chess.c
@@ -887,10 +887,9 @@ ChessWatchRequest(int sig)
int sock = establish_talk_connection(&SHM->uinfo[currutmp->destuip]);
ChessBroadcastListNode* node;
- if (sock < 0)
+ if (sock < 0 || !CurrentPlayingGameInfo)
return;
- assert(CurrentPlayingGameInfo);
node = ChessBroadcastListInsert(&CurrentPlayingGameInfo->broadcast_list);
node->sock = sock;