diff options
author | Paul Gilbert | 2016-10-01 22:24:30 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-10-01 22:24:30 -0400 |
commit | 454f20b948c2968056401270c14b135ce080da91 (patch) | |
tree | c2a7436070125b25e88ff48965bafdc0e23a0c33 /engines/titanic/support | |
parent | 08453de783494b12cec8acc70b5a9a4dced2cdea (diff) | |
download | scummvm-rg350-454f20b948c2968056401270c14b135ce080da91.tar.gz scummvm-rg350-454f20b948c2968056401270c14b135ce080da91.tar.bz2 scummvm-rg350-454f20b948c2968056401270c14b135ce080da91.zip |
TITANIC: Fix setting pointers in RawSurface::moveX
Diffstat (limited to 'engines/titanic/support')
-rw-r--r-- | engines/titanic/support/raw_surface.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/titanic/support/raw_surface.cpp b/engines/titanic/support/raw_surface.cpp index 8328ad1e88..4123b86e68 100644 --- a/engines/titanic/support/raw_surface.cpp +++ b/engines/titanic/support/raw_surface.cpp @@ -100,8 +100,9 @@ int CRawSurface::moveX(int xp) { } } - _runLength = *_pixelsBaseP++; - ++_pixelsBaseP; + _runLength = *_pixelsBaseP; + _pixelsP = _pixelsBaseP + 1; + _pixelsBaseP += 2; _flag = true; } |