aboutsummaryrefslogtreecommitdiff
path: root/engines/cruise
diff options
context:
space:
mode:
authormd52011-04-03 02:35:16 +0300
committermd52011-04-03 02:35:16 +0300
commit50a1d033daab313b7d3f750e9d15906443209628 (patch)
tree7bbe55f4a722ac57500e90b48ab9acee6b1c5ce3 /engines/cruise
parent3ea76f39f90e4bfa6fab7f1021a5614d70b5571d (diff)
downloadscummvm-rg350-50a1d033daab313b7d3f750e9d15906443209628.tar.gz
scummvm-rg350-50a1d033daab313b7d3f750e9d15906443209628.tar.bz2
scummvm-rg350-50a1d033daab313b7d3f750e9d15906443209628.zip
CRUISE: Fixed odd check, introduced in rev d83a83ef50
Diffstat (limited to 'engines/cruise')
-rw-r--r--engines/cruise/backgroundIncrust.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/cruise/backgroundIncrust.cpp b/engines/cruise/backgroundIncrust.cpp
index b51e86296c..1685044c9d 100644
--- a/engines/cruise/backgroundIncrust.cpp
+++ b/engines/cruise/backgroundIncrust.cpp
@@ -203,7 +203,7 @@ void regenerateBackgroundIncrust(backgroundIncrustStruct *pHead) {
if ((filesDatabase[frame].subData.ptr == NULL) || (strcmp(pl->name, filesDatabase[frame].subData.name))) {
frame = NUM_FILE_ENTRIES - 1;
- if (!loadFile(pl->name, frame, pl->spriteId) >= 0)
+ if (loadFile(pl->name, frame, pl->spriteId) < 0)
frame = -1;
}