aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/cruise/background.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/cruise/background.cpp b/engines/cruise/background.cpp
index c6229beccc..969c6b0b10 100644
--- a/engines/cruise/background.cpp
+++ b/engines/cruise/background.cpp
@@ -210,7 +210,7 @@ int loadBackground(const char *name, int idx) {
MemFree(ptrToFree);
- if (strcmp(name, backgroundTable[idx].name)) {
+ if (name != backgroundTable[idx].name) {
if (strlen(name) >= sizeof(backgroundTable[idx].name))
warning("background name length exceeded allowable maximum");