aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorFilippos Karapetis2010-11-17 12:33:55 +0000
committerFilippos Karapetis2010-11-17 12:33:55 +0000
commit58e4d9a97a90d98be37863a519d377fd4a313192 (patch)
treec45960ff8b202c5dd45223089e97a6208e17e4ea /engines/sci
parentee4770ffb6be50008d129ba52a5dd6f46a7d16cd (diff)
downloadscummvm-rg350-58e4d9a97a90d98be37863a519d377fd4a313192.tar.gz
scummvm-rg350-58e4d9a97a90d98be37863a519d377fd4a313192.tar.bz2
scummvm-rg350-58e4d9a97a90d98be37863a519d377fd4a313192.zip
SCI: Fixed the return values of Object::relocateSci3()
svn-id: r54289
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/engine/segment.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/engine/segment.cpp b/engines/sci/engine/segment.cpp
index 688c35f996..b2eac9f7aa 100644
--- a/engines/sci/engine/segment.cpp
+++ b/engines/sci/engine/segment.cpp
@@ -441,11 +441,11 @@ bool Object::relocateSci3(SegmentId segment, int location, int offset, size_t sc
if (location == _propertyOffsetsSci3[i]) {
_variables[i].segment = segment;
_variables[i].offset += offset;
- return 1;
+ return true;
}
}
- return -1;
+ return false;
}
int Object::propertyOffsetToId(SegManager *segMan, int propertyOffset) const {