diff --git a/source/image.cpp b/source/image.cpp index 63e0fad..4698435 100644 --- a/source/image.cpp +++ b/source/image.cpp @@ -113,7 +113,7 @@ void Image::drawSpecial(int x, int y, bool top, int layer, float scaleX, float s for(float j = 0; j < _width; j++) { u8 px = _bitmap[i * _width + j]; if(_palette[px - _palOfs] & 0x8000) - toncset(dst + i * 256 + x, px + paletteOffset, 1); + toncset(dst + i * 256 + j, px + paletteOffset, 1); } } } else {