diff --git a/src/blitter/32bpp_simple.cpp b/src/blitter/32bpp_simple.cpp index 3dc5ee0963..5ca0ba19cb 100644 --- a/src/blitter/32bpp_simple.cpp +++ b/src/blitter/32bpp_simple.cpp @@ -141,7 +141,7 @@ void Blitter_32bppSimple::DrawColorMappingRect(void *dst, int width, int height, udst++; } udst = udst - width + _screen.pitch; - } while (height--); + } while (--height); return; } if (pal == PALETTE_TO_STRUCT_GREY) { @@ -151,7 +151,7 @@ void Blitter_32bppSimple::DrawColorMappingRect(void *dst, int width, int height, udst++; } udst = udst - width + _screen.pitch; - } while (height--); + } while (--height); return; }