diff options
author | Paul Gilbert | 2010-02-20 10:32:25 +0000 |
---|---|---|
committer | Paul Gilbert | 2010-02-20 10:32:25 +0000 |
commit | 734c922f169f8f18e75753a0007706eb9890107c (patch) | |
tree | 10829fff9e0bdb9da25be1431a38c7845db48002 /engines | |
parent | 41314a356177eaa06a2bc67401e9733a965bd4b8 (diff) | |
download | scummvm-rg350-734c922f169f8f18e75753a0007706eb9890107c.tar.gz scummvm-rg350-734c922f169f8f18e75753a0007706eb9890107c.tar.bz2 scummvm-rg350-734c922f169f8f18e75753a0007706eb9890107c.zip |
Reverted commit 48092 - The comparison is explicitly intended to detect if the background table field was passed to the method, so it won't try to do a redundant copy to itself
svn-id: r48094
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 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"); |