aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/segment.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2010-11-18 22:27:56 +0000
committerFilippos Karapetis2010-11-18 22:27:56 +0000
commit4609f1113796fc5ae8f3b9177d1568b414a71971 (patch)
tree9f56f1431d226d922215f4f97c66c91ab16c7437 /engines/sci/engine/segment.cpp
parent9e418e6eafe1c2efcbfb4d490180ac89c1c62bf9 (diff)
downloadscummvm-rg350-4609f1113796fc5ae8f3b9177d1568b414a71971.tar.gz
scummvm-rg350-4609f1113796fc5ae8f3b9177d1568b414a71971.tar.bz2
scummvm-rg350-4609f1113796fc5ae8f3b9177d1568b414a71971.zip
SCI: Added species selector functionality for SCI3
svn-id: r54351
Diffstat (limited to 'engines/sci/engine/segment.cpp')
-rw-r--r--engines/sci/engine/segment.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/sci/engine/segment.cpp b/engines/sci/engine/segment.cpp
index 547eb20182..69b9153621 100644
--- a/engines/sci/engine/segment.cpp
+++ b/engines/sci/engine/segment.cpp
@@ -399,7 +399,7 @@ void Object::init(byte *buf, reg_t obj_pos, bool initVariables) {
for (uint i = 0; i < _variables.size(); i++)
_variables[i] = make_reg(0, READ_SCI11ENDIAN_UINT16(data + (i * 2)));
} else {
- infoSelectorSci3 = make_reg(0, READ_SCI11ENDIAN_UINT16(_baseObj + 10));
+ _infoSelectorSci3 = make_reg(0, READ_SCI11ENDIAN_UINT16(_baseObj + 10));
}
}
}
@@ -581,6 +581,7 @@ void Object::initSelectorsSci3(const byte *buf) {
}
}
+ _speciesSelectorSci3 = make_reg(0, READ_SCI11ENDIAN_UINT16(_baseObj + 4));
_superClassPosSci3 = make_reg(0, READ_SCI11ENDIAN_UINT16(_baseObj + 8));
_baseVars = propertyIds;