aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--graphics/wincursor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/wincursor.cpp b/graphics/wincursor.cpp
index d3c9414e03..10939a677a 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) {