aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorNicola Mettifogo2010-02-20 12:29:34 +0000
committerNicola Mettifogo2010-02-20 12:29:34 +0000
commit0e6893d0662327bfc058e19df337d7a5da4dbc2a (patch)
tree8ba42d4b38b289f8f03bb9ec9e341c8383ff0fd9 /engines
parenta57445e847ca241f69efc3c043962b80b82cf37d (diff)
downloadscummvm-rg350-0e6893d0662327bfc058e19df337d7a5da4dbc2a.tar.gz
scummvm-rg350-0e6893d0662327bfc058e19df337d7a5da4dbc2a.tar.bz2
scummvm-rg350-0e6893d0662327bfc058e19df337d7a5da4dbc2a.zip
Added comment to explain pointer comparison. See r48092 and r48904.
svn-id: r48096
Diffstat (limited to 'engines')
-rw-r--r--engines/cruise/background.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/cruise/background.cpp b/engines/cruise/background.cpp
index 969c6b0b10..3ac57cc376 100644
--- a/engines/cruise/background.cpp
+++ b/engines/cruise/background.cpp
@@ -210,6 +210,8 @@ int loadBackground(const char *name, int idx) {
MemFree(ptrToFree);
+ // NOTE: the following is really meant to compare pointers and not the actual
+ // strings. See r48092 and r48094.
if (name != backgroundTable[idx].name) {
if (strlen(name) >= sizeof(backgroundTable[idx].name))
warning("background name length exceeded allowable maximum");