diff options
Diffstat (limited to 'scumm/object.cpp')
-rw-r--r-- | scumm/object.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/object.cpp b/scumm/object.cpp index 16b563e6ae..245b883a34 100644 --- a/scumm/object.cpp +++ b/scumm/object.cpp @@ -1221,7 +1221,7 @@ int Scumm::getObjX(int obj) { if (obj < _numActors) { if (obj < 1) return 0; /* fix for indy4's map */ - return derefActor(obj, "getObjX")->x; + return derefActor(obj, "getObjX")->_pos.x; } else { if (whereIsObject(obj) == WIO_NOT_FOUND) return -1; @@ -1235,7 +1235,7 @@ int Scumm::getObjY(int obj) { if (obj < _numActors) { if (obj < 1) return 0; /* fix for indy4's map */ - return derefActor(obj, "getObjY")->y; + return derefActor(obj, "getObjY")->_pos.y; } else { if (whereIsObject(obj) == WIO_NOT_FOUND) return -1; |