From 9b467ee4ff927b8cad22ce1afb538b6b5a46c6fc Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sat, 20 Feb 2010 01:57:34 +0000 Subject: "const char *" strings should be compared via strcmp and not via !=/==. svn-id: r48092 --- engines/cruise/background.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/cruise') diff --git a/engines/cruise/background.cpp b/engines/cruise/background.cpp index a32973eb54..38fdd0dc9e 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 (name != backgroundTable[idx].name) { + if (strcmp(name, backgroundTable[idx].name)) { if (strlen(name) > sizeof(backgroundTable[idx].name)) warning("background name length exceeded allowable maximum"); -- cgit v1.2.3