aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction
diff options
context:
space:
mode:
authorNicola Mettifogo2007-06-16 11:22:23 +0000
committerNicola Mettifogo2007-06-16 11:22:23 +0000
commitd3ced30c81411513855ea241f74b4e062c7b2666 (patch)
tree3ca509ee1de09ca345ec86f5fdf6db6599ad8c2f /engines/parallaction
parent987aaa6d81bf4aff816d5fc0ea69cf02262547bb (diff)
downloadscummvm-rg350-d3ced30c81411513855ea241f74b4e062c7b2666.tar.gz
scummvm-rg350-d3ced30c81411513855ea241f74b4e062c7b2666.tar.bz2
scummvm-rg350-d3ced30c81411513855ea241f74b4e062c7b2666.zip
Fixed regression: crash when loading objects on Amiga.
svn-id: r27460
Diffstat (limited to 'engines/parallaction')
-rw-r--r--engines/parallaction/disk.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/parallaction/disk.cpp b/engines/parallaction/disk.cpp
index 1761224a0c..7b11fbbbed 100644
--- a/engines/parallaction/disk.cpp
+++ b/engines/parallaction/disk.cpp
@@ -1071,9 +1071,9 @@ Cnv* AmigaDisk::loadObjects(const char *name) {
char path[PATH_LEN];
if (_vm->getFeatures() & GF_DEMO)
- sprintf(path, "objs/%s.objs", name);
- else
sprintf(path, "%s.objs", name);
+ else
+ sprintf(path, "objs/%s.objs", name);
Common::SeekableReadStream *s = openArchivedFile(path, true);