diff --git a/xwords4/common/model.c b/xwords4/common/model.c index ac43ec12c..00eff2a81 100644 --- a/xwords4/common/model.c +++ b/xwords4/common/model.c @@ -553,7 +553,7 @@ model_undoLatestMoves( ModelCtxt* model, PoolContext* pool, ++nMovesUndone; if ( moveSought < 0 ) { - moveSought = entry.moveNum; + moveSought = entry.moveNum - 1; } else if ( moveSought-- != entry.moveNum ) { success = XP_FALSE; break;