From 17de345191ab9fde2ed1469c5e325347313decdf Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Wed, 11 May 2016 13:15:23 -0400 Subject: TITANIC: Fix conditional checks in TTword classes load methods --- engines/titanic/true_talk/tt_word.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engines/titanic') diff --git a/engines/titanic/true_talk/tt_word.cpp b/engines/titanic/true_talk/tt_word.cpp index 7fc5263c88..3fa5381684 100644 --- a/engines/titanic/true_talk/tt_word.cpp +++ b/engines/titanic/true_talk/tt_word.cpp @@ -127,7 +127,7 @@ TTword2::TTword2(TTString &str, int val1, int val2, int val3, int val4) : int TTword2::load(SimpleFile *file) { int val; - if (TTword::load(file, 1) && file->scanf("%d", &val)) { + if (!TTword::load(file, 1) && file->scanf("%d", &val)) { _field30 = val; return 0; } else { @@ -171,7 +171,7 @@ TTword4::TTword4(TTString &str, int val1, int val2, int val3, int val4) : int TTword4::load(SimpleFile *file) { int val; - if (TTword::load(file, 1) && file->scanf("%d", &val)) { + if (!TTword::load(file, 1) && file->scanf("%d", &val)) { _field30 = val; return 0; } else { @@ -188,7 +188,7 @@ TTword5::TTword5(TTString &str, int val1, int val2, int val3, int val4) : int TTword5::load(SimpleFile *file) { int val; - if (TTword::load(file, 1) && file->scanf("%d", &val)) { + if (!TTword::load(file, 1) && file->scanf("%d", &val)) { if (val >= 0 && val <= 12) { _field30 = val; return 0; -- cgit v1.2.3