aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic
diff options
context:
space:
mode:
authorPaul Gilbert2016-05-11 13:15:23 -0400
committerPaul Gilbert2016-07-10 16:39:14 -0400
commit17de345191ab9fde2ed1469c5e325347313decdf (patch)
treefeaca84a653605206f4486cb694d60f5f9daa72f /engines/titanic
parentb8a7a98c544eeae453b0b62cffdac7a59f43b737 (diff)
downloadscummvm-rg350-17de345191ab9fde2ed1469c5e325347313decdf.tar.gz
scummvm-rg350-17de345191ab9fde2ed1469c5e325347313decdf.tar.bz2
scummvm-rg350-17de345191ab9fde2ed1469c5e325347313decdf.zip
TITANIC: Fix conditional checks in TTword classes load methods
Diffstat (limited to 'engines/titanic')
-rw-r--r--engines/titanic/true_talk/tt_word.cpp6
1 files changed, 3 insertions, 3 deletions
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;