diff options
-rw-r--r-- | engines/xeen/sprites.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/xeen/sprites.cpp b/engines/xeen/sprites.cpp index 2c5279bebc..93c7e426f1 100644 --- a/engines/xeen/sprites.cpp +++ b/engines/xeen/sprites.cpp @@ -151,7 +151,7 @@ void SpriteResource::drawOffset(XSurface &dest, uint16 offset, const Common::Poi const byte *lineEndP = (const byte *)dest.getBasePtr(bounds.right, destPos.y + yPos); byte *destP = !flipped ? (byte *)dest.getBasePtr(destPos.x + xPos, destPos.y + yPos) : - (byte *)dest.getBasePtr(destPos.x + width - xPos, destPos.y + yPos); + (byte *)dest.getBasePtr(destPos.x + xOffset + width - xPos, destPos.y + yPos); while (byteCount < lineLength) { // The next byte is an opcode that determines what |