Skip to content

Commit

Permalink
SCI32: Remove bad assertion in relocateSci3
Browse files Browse the repository at this point in the history
While extremely rare (only Rama script 64948 seems to have this
profile), it *is* possible for an object to have zero properties
(and thus, zero property offsets).
  • Loading branch information
csnover committed May 21, 2017
1 parent eda836f commit d09ae57
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion engines/sci/engine/object.cpp
Expand Up @@ -129,7 +129,6 @@ bool Object::relocateSci0Sci21(SegmentId segment, int location, size_t scriptSiz

#ifdef ENABLE_SCI32
bool Object::relocateSci3(SegmentId segment, uint32 location, int offset, size_t scriptSize) {
assert(_propertyOffsetsSci3.size());
assert(offset >= 0 && (uint)offset < scriptSize);

for (uint i = 0; i < _variables.size(); ++i) {
Expand Down

0 comments on commit d09ae57

Please sign in to comment.