mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-02 06:20:14 +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;
|
||||
} else {
|
||||
PossibleMove* move;
|
||||
if ( chooseMove( engine, &move ) ) {
|
||||
result = chooseMove( engine, &move );
|
||||
if ( result ) {
|
||||
XP_ASSERT( !!newMove );
|
||||
XP_MEMCPY( newMove, &move->moveInfo, sizeof(*newMove) );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue