aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoost Peters2003-10-06 14:01:41 +0000
committerJoost Peters2003-10-06 14:01:41 +0000
commit4ef2541a3afdd88df3266754f00e7d0e9387ea23 (patch)
treeb05ab9a7b3a65eb36fb0d11228235059bb1be788
parent52efd44852246cff7e19a5dc3efac96d847cea71 (diff)
downloadscummvm-rg350-4ef2541a3afdd88df3266754f00e7d0e9387ea23.tar.gz
scummvm-rg350-4ef2541a3afdd88df3266754f00e7d0e9387ea23.tar.bz2
scummvm-rg350-4ef2541a3afdd88df3266754f00e7d0e9387ea23.zip
forgot this
svn-id: r10640
-rw-r--r--queen/cutaway.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/queen/cutaway.cpp b/queen/cutaway.cpp
index 319b2e4f76..72d0847403 100644
--- a/queen/cutaway.cpp
+++ b/queen/cutaway.cpp
@@ -868,9 +868,9 @@ void Cutaway::objectCopy(int dummyObjectIndex, int realObjectIndex) {
// Make sure that WALK_OFF_DATA is copied too!
for (int i = 1; i <= _logic->walkOffCount(); i++) {
- uint16* walkOffData = _logic->walkOffData(i);
- if (walkOffData[0] == dummyObjectIndex) {
- walkOffData[0] = realObjectIndex;
+ WalkOffData *walkOffData = _logic->walkOffData(i);
+ if (walkOffData->entryObj == (int16)dummyObjectIndex) {
+ walkOffData->entryObj = (int16)realObjectIndex;
break;
}
}