diff --git a/graphics/wincursor.cpp b/graphics/wincursor.cpp index d3c9414e03c..10939a677ad 100644 --- a/graphics/wincursor.cpp +++ b/graphics/wincursor.cpp @@ -138,7 +138,7 @@ bool WinCursor::readFromStream(Common::SeekableReadStream &stream) { if (bitsPerPixel == 1) { // 1bpp - for (uint32 j = 0; j < (_width / 8); j++) { + for (uint16 j = 0; j < (_width / 8); j++) { byte p = src[j]; for (int k = 0; k < 8; k++, rowDest++, p <<= 1) {