diff options
author | Colin Snover | 2016-03-01 21:11:58 -0600 |
---|---|---|
committer | Colin Snover | 2016-03-01 21:12:31 -0600 |
commit | e5b30fb9afa3a42e08525980257868a73660937d (patch) | |
tree | 2a9b178595263ed361bde8e92cc86c6104e7fd53 /engines/sci/graphics/celobj32.cpp | |
parent | 0012390f2ad1c417d68e7db74717a6d996ce41ee (diff) | |
download | scummvm-rg350-e5b30fb9afa3a42e08525980257868a73660937d.tar.gz scummvm-rg350-e5b30fb9afa3a42e08525980257868a73660937d.tar.bz2 scummvm-rg350-e5b30fb9afa3a42e08525980257868a73660937d.zip |
SCI32: Fix bad reads of mirrored cels
Diffstat (limited to 'engines/sci/graphics/celobj32.cpp')
-rw-r--r-- | engines/sci/graphics/celobj32.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/graphics/celobj32.cpp b/engines/sci/graphics/celobj32.cpp index f8bce26a2c..62db02b554 100644 --- a/engines/sci/graphics/celobj32.cpp +++ b/engines/sci/graphics/celobj32.cpp @@ -109,8 +109,8 @@ struct SCALER_NoScale { const int16 _lastIndex; SCALER_NoScale(const CelObj &celObj, const int16 maxWidth) : - _reader(celObj, maxWidth), - _lastIndex(maxWidth - 1) {} + _reader(celObj, FLIP ? celObj._width : maxWidth), + _lastIndex(celObj._width - 1) {} inline void setSource(const int16 x, const int16 y) { _row = _reader.getRow(y); |