aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2019-11-15 20:26:22 -0800
committerPaul Gilbert2019-11-15 20:26:59 -0800
commitcc2973f04f5e46eb1c07ee5ff1e400cf9a85e64e (patch)
tree5a1a804b5affdb113c19042456d4612a86deb542
parent82489b5d0caee88a89e722e0a31631603da723f0 (diff)
downloadscummvm-rg350-cc2973f04f5e46eb1c07ee5ff1e400cf9a85e64e.tar.gz
scummvm-rg350-cc2973f04f5e46eb1c07ee5ff1e400cf9a85e64e.tar.bz2
scummvm-rg350-cc2973f04f5e46eb1c07ee5ff1e400cf9a85e64e.zip
GLK: ARCHETYPE: Fix saving games
-rw-r--r--engines/glk/archetype/saveload.cpp9
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);