void FileManager::CloseFile(File * const file)
{
for (int i = 0; i < MAX_OPEN_FILES; ++i)
{
if ((_openFiles[i] == file) == true)
{
_openFiles[i] == NULL;
}
}
...
_openFiles is a private member of FileManager and is just an array of File *'s
When the exact same test is performed in the Immediate window i get a result of 1!?!
EDIT the == true was added purely as a sanity check!!