diff options
author | Colin Snover | 2017-05-02 11:00:45 -0500 |
---|---|---|
committer | Colin Snover | 2017-05-02 11:00:45 -0500 |
commit | 68218d15f27146a952d18c20b4130c3fb14580c6 (patch) | |
tree | 46c94208c07dae3efd1682b7549f5ec6f25b51e1 /engines/sci/engine | |
parent | bb40889a606cc9b4e777c050b818fdfab5050697 (diff) | |
download | scummvm-rg350-68218d15f27146a952d18c20b4130c3fb14580c6.tar.gz scummvm-rg350-68218d15f27146a952d18c20b4130c3fb14580c6.tar.bz2 scummvm-rg350-68218d15f27146a952d18c20b4130c3fb14580c6.zip |
SCI32: Fix incorrect arguments to readPixel in kCelInfo
Fixes Trac#9750.
Diffstat (limited to 'engines/sci/engine')
-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) { |