aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2018-03-31 15:11:31 -0400
committerPaul Gilbert2018-03-31 15:11:31 -0400
commit4c64e1607b0a9b38c893944c7064cb98b3311ee8 (patch)
treec91f8823d5efa8caf629f0b85b491fb3997739ed
parent3806a4a0f6587223b076b2249d905da0d554c4d0 (diff)
downloadscummvm-rg350-4c64e1607b0a9b38c893944c7064cb98b3311ee8.tar.gz
scummvm-rg350-4c64e1607b0a9b38c893944c7064cb98b3311ee8.tar.bz2
scummvm-rg350-4c64e1607b0a9b38c893944c7064cb98b3311ee8.zip
XEEN: Properly remove river bottles when opened
-rw-r--r--engines/xeen/scripts.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/xeen/scripts.cpp b/engines/xeen/scripts.cpp
index 5bb6c4f4ee..3a3c9d6d65 100644
--- a/engines/xeen/scripts.cpp
+++ b/engines/xeen/scripts.cpp
@@ -800,7 +800,7 @@ bool Scripts::cmdRemove(ParamsIterator &params) {
if (intf._objNumber) {
// Give the active object a completely way out of bounds position
- MazeObject &obj = map._mobData._objects[intf._objNumber - 1];
+ MazeObject &obj = map._mobData._objects[intf._objNumber];
obj._position = Common::Point(128, 128);
}