aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/sludge/savedata.cpp2
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);
}