mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-04 23:02:02 +01:00
return false if no move found -- to really fix the crash
This commit is contained in:
parent
5725f36db8
commit
a7c77785f6
1 changed files with 2 additions and 1 deletions
|
@ -513,7 +513,8 @@ engine_findMove( EngineCtxt* engine, const ModelCtxt* model,
|
||||||
result = XP_FALSE;
|
result = XP_FALSE;
|
||||||
} else {
|
} else {
|
||||||
PossibleMove* move;
|
PossibleMove* move;
|
||||||
if ( chooseMove( engine, &move ) ) {
|
result = chooseMove( engine, &move );
|
||||||
|
if ( result ) {
|
||||||
XP_ASSERT( !!newMove );
|
XP_ASSERT( !!newMove );
|
||||||
XP_MEMCPY( newMove, &move->moveInfo, sizeof(*newMove) );
|
XP_MEMCPY( newMove, &move->moveInfo, sizeof(*newMove) );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue