diff --git a/xwords4/common/engine.c b/xwords4/common/engine.c index f6b5d1a59..e34e3f0d4 100644 --- a/xwords4/common/engine.c +++ b/xwords4/common/engine.c @@ -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) ); }