mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-04 20:46:28 +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
52650992ee
commit
5fb7bb95d4
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…
Add table
Reference in a new issue