diff options
author | Sebastian Krzyszkowiak | 2019-06-17 23:00:34 +0200 |
---|---|---|
committer | Filippos Karapetis | 2019-06-18 01:32:43 +0300 |
commit | 5613caf32245653e276dbc60824c86f330b6d235 (patch) | |
tree | d41b7424846f0aaca0c463dcd8cde339c5cc09c6 /engines | |
parent | 77db7fcb607235d3d4dc081eebcc79d473048373 (diff) | |
download | scummvm-rg350-5613caf32245653e276dbc60824c86f330b6d235.tar.gz scummvm-rg350-5613caf32245653e276dbc60824c86f330b6d235.tar.bz2 scummvm-rg350-5613caf32245653e276dbc60824c86f330b6d235.zip |
SLUDGE: fix data file handling with custom encoding setting
The check was inverted - it failed when everything was alright and
succeded on error...
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sludge/savedata.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sludge/savedata.cpp b/engines/sludge/savedata.cpp index b103523f8c..59d91f3634 100644 --- a/engines/sludge/savedata.cpp +++ b/engines/sludge/savedata.cpp @@ -118,7 +118,7 @@ bool CustomSaveHelper::fileToStack(const Common::String &filename, StackHandler if (_saveEncoding) { checker = readStringEncoded(fp); - if (checker == UTF8_CHECKER) { + if (checker != UTF8_CHECKER) { delete fp; return fatal(LOAD_ERROR "The current file encoding setting does not match the encoding setting used when this file was created:", filename); } |