From 0e6893d0662327bfc058e19df337d7a5da4dbc2a Mon Sep 17 00:00:00 2001 From: Nicola Mettifogo Date: Sat, 20 Feb 2010 12:29:34 +0000 Subject: Added comment to explain pointer comparison. See r48092 and r48904. svn-id: r48096 --- engines/cruise/background.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'engines/cruise') 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"); -- cgit v1.2.3