mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-08 05:24:39 +01:00
saveToken can be 0 when only gi is being saved
This commit is contained in:
parent
571300c0f8
commit
b2d47d70be
1 changed files with 1 additions and 1 deletions
|
@ -261,13 +261,13 @@ void
|
||||||
game_saveToStream( const XWGame* game, const CurGameInfo* gi,
|
game_saveToStream( const XWGame* game, const CurGameInfo* gi,
|
||||||
XWStreamCtxt* stream, XP_U16 saveToken )
|
XWStreamCtxt* stream, XP_U16 saveToken )
|
||||||
{
|
{
|
||||||
XP_ASSERT( 0 != saveToken );
|
|
||||||
stream_putU8( stream, CUR_STREAM_VERS );
|
stream_putU8( stream, CUR_STREAM_VERS );
|
||||||
stream_setVersion( stream, CUR_STREAM_VERS );
|
stream_setVersion( stream, CUR_STREAM_VERS );
|
||||||
|
|
||||||
gi_writeToStream( stream, gi );
|
gi_writeToStream( stream, gi );
|
||||||
|
|
||||||
if ( !!game ) {
|
if ( !!game ) {
|
||||||
|
XP_ASSERT( 0 != saveToken );
|
||||||
stream_putU8( stream, (XP_U8)!!game->comms );
|
stream_putU8( stream, (XP_U8)!!game->comms );
|
||||||
#ifdef XWFEATURE_STANDALONE_ONLY
|
#ifdef XWFEATURE_STANDALONE_ONLY
|
||||||
XP_ASSERT( !game->comms );
|
XP_ASSERT( !game->comms );
|
||||||
|
|
Loading…
Reference in a new issue