diff options
-rw-r--r-- | mbbsd/chess.c | 3 |
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; |