aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine
diff options
context:
space:
mode:
authorColin Snover2016-10-11 19:38:43 -0500
committerColin Snover2016-10-11 19:40:08 -0500
commit82c39aa6adc2ee346ffc7b0880661492436bb5b4 (patch)
treea17ac25ace74e76dff9a36c3c11b9423f0f4a835 /engines/sci/engine
parent86e525c1ad917ecfd9a6b59d79c63c6cc1c7eec0 (diff)
downloadscummvm-rg350-82c39aa6adc2ee346ffc7b0880661492436bb5b4.tar.gz
scummvm-rg350-82c39aa6adc2ee346ffc7b0880661492436bb5b4.tar.bz2
scummvm-rg350-82c39aa6adc2ee346ffc7b0880661492436bb5b4.zip
SCI32: Fix garbage collection of objects stored in IntArrays
Diffstat (limited to 'engines/sci/engine')
-rw-r--r--engines/sci/engine/segment.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/engine/segment.cpp b/engines/sci/engine/segment.cpp
index 32f16148dc..fffa7f4d7e 100644
--- a/engines/sci/engine/segment.cpp
+++ b/engines/sci/engine/segment.cpp
@@ -274,7 +274,7 @@ Common::Array<reg_t> ArrayTable::listAllOutgoingReferences(reg_t addr) const {
}
SciArray &array = const_cast<SciArray &>(at(addr.getOffset()));
- if (array.getType() == kArrayTypeID) {
+ if (array.getType() == kArrayTypeID || array.getType() == kArrayTypeInt16) {
for (uint16 i = 0; i < array.size(); ++i) {
const reg_t value = array.getAsID(i);
if (value.isPointer()) {