From dd9f8cd54c948cf02e594eb3035363452d8f6936 Mon Sep 17 00:00:00 2001 From: Pk11 Date: Wed, 20 Jan 2021 15:55:18 -0600 Subject: [PATCH] Oops, this should be an int too --- source/image.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/image.cpp b/source/image.cpp index 4698435..c5aa25a 100644 --- a/source/image.cpp +++ b/source/image.cpp @@ -110,7 +110,7 @@ void Image::drawSpecial(int x, int y, bool top, int layer, float scaleX, float s // If the scale is 1 use faster integer math if(scaleX == 1.0f && scaleY == 1.0f) { for(int i = 0; i < _height; i++) { - for(float j = 0; j < _width; j++) { + for(int j = 0; j < _width; j++) { u8 px = _bitmap[i * _width + j]; if(_palette[px - _palOfs] & 0x8000) toncset(dst + i * 256 + j, px + paletteOffset, 1);