set dictLang to 0 (unknown) when reading old-version stream

This commit is contained in:
Eric House 2010-10-26 20:56:41 -07:00
parent f9b2eb4a3e
commit fd85bd35da

View file

@ -439,9 +439,8 @@ gi_readFromStream( MPFORMAL XWStreamCtxt* stream, CurGameInfo* gi )
}
gi->gameID = stream_getU16( stream );
if ( strVersion >= STREAM_VERS_DICTLANG ) {
gi->dictLang = stream_getU8( stream );
}
gi->dictLang =
strVersion >= STREAM_VERS_DICTLANG ? stream_getU8( stream ) : 0;
if ( gi->timerEnabled || strVersion >= STREAM_VERS_GAMESECONDS ) {
gi->gameSeconds = stream_getU16( stream );
}