aboutsummaryrefslogtreecommitdiff
path: root/engines/gob
diff options
context:
space:
mode:
authorArnaud Boutonné2009-08-17 10:05:02 +0000
committerArnaud Boutonné2009-08-17 10:05:02 +0000
commit90336c88acfec04f48c9710e9dfae55f074905eb (patch)
tree2f8070d7380885b559f043318c90e52a94681115 /engines/gob
parentb8fd79486faa728df92e0f8d95ee8d3cbe55c0d6 (diff)
downloadscummvm-rg350-90336c88acfec04f48c9710e9dfae55f074905eb.tar.gz
scummvm-rg350-90336c88acfec04f48c9710e9dfae55f074905eb.tar.bz2
scummvm-rg350-90336c88acfec04f48c9710e9dfae55f074905eb.zip
Add back parenthesis (I wasn't aware of this convention, sorry) in saveload, and mimic this code in oPlaytoons_openItk
svn-id: r43464
Diffstat (limited to 'engines/gob')
-rw-r--r--engines/gob/inter_playtoons.cpp2
-rw-r--r--engines/gob/save/saveload.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/gob/inter_playtoons.cpp b/engines/gob/inter_playtoons.cpp
index ab7bf819cc..e224f29734 100644
--- a/engines/gob/inter_playtoons.cpp
+++ b/engines/gob/inter_playtoons.cpp
@@ -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
diff --git a/engines/gob/save/saveload.cpp b/engines/gob/save/saveload.cpp
index 27e3b34655..81239f07dc 100644
--- a/engines/gob/save/saveload.cpp
+++ b/engines/gob/save/saveload.cpp
@@ -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;