fix creation of bogus game

Snapshot can be the first write. Save the rowid if it's new.
This commit is contained in:
Eric House 2018-05-31 22:19:03 -07:00
parent b24d60e7bf
commit ffaa47f893

View file

@ -187,8 +187,8 @@ addSnapshot( CommonGlobals* cGlobals )
XWStreamCtxt* stream = make_simple_stream( cGlobals );
getImage( dctx, stream );
removeSurface( dctx );
writeBlobColumnStream( stream, cGlobals->pDb, cGlobals->selRow, "snap" );
// XP_ASSERT( cGlobals->selRow == newRow );
cGlobals->selRow = writeBlobColumnStream( stream, cGlobals->pDb,
cGlobals->selRow, "snap" );
stream_destroy( stream );
}