From 9e675d49bae611cda7003431b08f65e882bb744e Mon Sep 17 00:00:00 2001 From: Eric House Date: Thu, 22 Dec 2022 10:29:26 -0800 Subject: [PATCH] log info about an assert I've seen --- xwords4/common/model.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/xwords4/common/model.c b/xwords4/common/model.c index 36ce67469..77a244188 100644 --- a/xwords4/common/model.c +++ b/xwords4/common/model.c @@ -1023,7 +1023,12 @@ model_undoLatestMoves( ModelCtxt* model, XWEnv xwe, PoolContext* pool, model_sortTiles( model, turn ); if ( model->vol.gi->inDuplicateMode ) { - XP_ASSERT( DUP_PLAYER == turn ); +#ifdef DEBUG + if ( DUP_PLAYER != turn ) { + XP_LOGFF( "turn: %d", turn ); + XP_ASSERT( 0 ); + } +#endif model_cloneDupeTrays( model, xwe ); } } else if ( entry.moveType == TRADE_TYPE ) {