diff options
-rw-r--r-- | engines/sci/engine/kgraphics32.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/engine/kgraphics32.cpp b/engines/sci/engine/kgraphics32.cpp index f332e17b29..b0a1c70ed8 100644 --- a/engines/sci/engine/kgraphics32.cpp +++ b/engines/sci/engine/kgraphics32.cpp @@ -451,7 +451,7 @@ reg_t kCelInfoGetOriginY(EngineState *s, int argc, reg_t *argv) { reg_t kCelInfoGetPixel(EngineState *s, int argc, reg_t *argv) { CelObjView view(argv[0].toUint16(), argv[1].toSint16(), argv[2].toSint16()); - return make_reg(0, view.readPixel(argv[4].toSint16(), argv[5].toSint16(), view._mirrorX)); + return make_reg(0, view.readPixel(argv[3].toSint16(), argv[4].toSint16(), view._mirrorX)); } reg_t kScrollWindow(EngineState *s, int argc, reg_t *argv) { |