diff options
author | Paul Gilbert | 2019-11-15 20:26:22 -0800 |
---|---|---|
committer | Paul Gilbert | 2019-11-15 20:26:59 -0800 |
commit | cc2973f04f5e46eb1c07ee5ff1e400cf9a85e64e (patch) | |
tree | 5a1a804b5affdb113c19042456d4612a86deb542 /engines/glk/archetype/saveload.cpp | |
parent | 82489b5d0caee88a89e722e0a31631603da723f0 (diff) | |
download | scummvm-rg350-cc2973f04f5e46eb1c07ee5ff1e400cf9a85e64e.tar.gz scummvm-rg350-cc2973f04f5e46eb1c07ee5ff1e400cf9a85e64e.tar.bz2 scummvm-rg350-cc2973f04f5e46eb1c07ee5ff1e400cf9a85e64e.zip |
GLK: ARCHETYPE: Fix saving games
Diffstat (limited to 'engines/glk/archetype/saveload.cpp')
-rw-r--r-- | engines/glk/archetype/saveload.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/engines/glk/archetype/saveload.cpp b/engines/glk/archetype/saveload.cpp index dc36346cf8..8474996ec4 100644 --- a/engines/glk/archetype/saveload.cpp +++ b/engines/glk/archetype/saveload.cpp @@ -341,11 +341,12 @@ static void walk_expr(MissionType mission, Common::Stream *bfile, ExprTree &the_ if (Translating && the_expr->_data._ident.ident_kind == DefaultClassification) { // may have changed meaning get_meaning(the_expr->_data._ident.ident_int, ID_kind, temp); - if (ID_kind == UNDEFINED_ID) + if (ID_kind == UNDEFINED_ID) { add_undefined(the_expr->_data._ident.ident_int); - } else { - the_expr->_data._ident.ident_kind = ID_kind; - the_expr->_data._ident.ident_int = temp; + } else { + the_expr->_data._ident.ident_kind = ID_kind; + the_expr->_data._ident.ident_int = temp; + } } writeStream->writeByte(the_expr->_data._ident.ident_kind); |