Add back parenthesis (I wasn't aware of this convention, sorry) in saveload, and mimic this code in oPlaytoons_openItk

svn-id: r43464
This commit is contained in:
Arnaud Boutonné 2009-08-17 10:05:02 +00:00
parent b8fd79486f
commit 90336c88ac
2 changed files with 2 additions and 2 deletions

View file

@ -150,7 +150,7 @@ void Inter_Playtoons::oPlaytoons_openItk() {
strcat(fileName, ".ITK");
// Workaround for Bambou : In the script, the path is hardcoded (!!)
if ((backSlash = strrchr(fileName, '\\')) != 0) {
if ((backSlash = strrchr(fileName, '\\'))) {
debugC(2, kDebugFileIO, "Opening ITK file \"%s\" instead of \"%s\"", backSlash + 1, fileName);
_vm->_dataIO->openDataFile(backSlash + 1, true);
} else

View file

@ -42,7 +42,7 @@ SaveLoad::~SaveLoad() {
const char *SaveLoad::stripPath(const char *fileName) {
const char *backSlash;
if (backSlash = strrchr(fileName, '\\'))
if ((backSlash = strrchr(fileName, '\\')))
return backSlash + 1;
return fileName;