diff --git a/src/win32/i_system.cpp b/src/win32/i_system.cpp index 9de5a2d47d..99ed4fa94e 100644 --- a/src/win32/i_system.cpp +++ b/src/win32/i_system.cpp @@ -1428,6 +1428,7 @@ static HCURSOR CreateAlphaCursor(FTexture *cursorpic) { TArray unscaled; unscaled.Resize(32 * 32); + for (int i = 0; i < 32 * 32; i++) unscaled[i] = 0; FBitmap bmp((BYTE *)&unscaled[0] + 31 * 32 * 4, -32 * 4, 32, 32); cursorpic->CopyTrueColorPixels(&bmp, 0, 0); uint32_t *scaled = (uint32_t*)bits;