diff options
author | Johannes Schickel | 2010-02-20 01:57:34 +0000 |
---|---|---|
committer | Johannes Schickel | 2010-02-20 01:57:34 +0000 |
commit | 9b467ee4ff927b8cad22ce1afb538b6b5a46c6fc (patch) | |
tree | 238266ca97e0bb814e2058b3f0a901fd30c1941e /engines | |
parent | b51568ddaf96f77c7993afe44e801193b38f0cb4 (diff) | |
download | scummvm-rg350-9b467ee4ff927b8cad22ce1afb538b6b5a46c6fc.tar.gz scummvm-rg350-9b467ee4ff927b8cad22ce1afb538b6b5a46c6fc.tar.bz2 scummvm-rg350-9b467ee4ff927b8cad22ce1afb538b6b5a46c6fc.zip |
"const char *" strings should be compared via strcmp and not via !=/==.
svn-id: r48092
Diffstat (limited to 'engines')
-rw-r--r-- | engines/cruise/background.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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"); |