From 80167fb2d96994e3f879d7baed74c08001008acc Mon Sep 17 00:00:00 2001 From: Eric House Date: Fri, 1 Jun 2018 05:58:04 -0700 Subject: [PATCH] one more assert --- xwords4/linux/gamesdb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xwords4/linux/gamesdb.c b/xwords4/linux/gamesdb.c index b6840777c..f8e5119e1 100644 --- a/xwords4/linux/gamesdb.c +++ b/xwords4/linux/gamesdb.c @@ -167,6 +167,9 @@ writeToDB( XWStreamCtxt* stream, void* closure ) if ( newGame ) { /* new row; need to insert blob first */ cGlobals->selRow = selRow; + XP_LOGF( "%s(): new game at row %lld", __func__, selRow ); + } else { + assert( selRow == cGlobals->selRow ); } (*cGlobals->onSave)( cGlobals->onSaveClosure, selRow, newGame );