aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/cruise/dataLoader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/cruise/dataLoader.cpp b/engines/cruise/dataLoader.cpp
index 69fcc12b1e..ef333be6c6 100644
--- a/engines/cruise/dataLoader.cpp
+++ b/engines/cruise/dataLoader.cpp
@@ -194,7 +194,7 @@ int createResFileEntry(int width, int height, int resType) {
filesDatabase[entryNumber].subData.ptr = (uint8 *) mallocAndZero(size + div);
- if (filesDatabase[entryNumber].subData.ptr) {
+ if (!filesDatabase[entryNumber].subData.ptr) {
return (-2);
}