mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-28 09:58:30 +01:00
selInfo can't be left null when board created, as selPlayer is 0.
Point at pti[0] to fix crasher.
This commit is contained in:
parent
c20e85eccd
commit
ab89d78ac8
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue