From ab89d78ac810dac6e25f99dfd8b1cc7a6ef535e9 Mon Sep 17 00:00:00 2001 From: ehouse Date: Fri, 18 Jul 2008 09:03:54 +0000 Subject: [PATCH] selInfo can't be left null when board created, as selPlayer is 0. Point at pti[0] to fix crasher. --- xwords4/common/board.c | 1 + 1 file changed, 1 insertion(+) diff --git a/xwords4/common/board.c b/xwords4/common/board.c index 558dcd98b..406e09444 100644 --- a/xwords4/common/board.c +++ b/xwords4/common/board.c @@ -136,6 +136,7 @@ board_make( MPFORMAL ModelCtxt* model, ServerCtxt* server, DrawCtx* draw, if ( result != NULL ) { XP_MEMSET( result, 0, sizeof( *result ) ); + result->selInfo = result->pti; /* equates to selPlayer == 0 */ MPASSIGN(result->mpool, mpool);