diff --git a/src/graphics/StdPNG.cpp b/src/graphics/StdPNG.cpp index d1428a4ef..bb05e1c7e 100644 --- a/src/graphics/StdPNG.cpp +++ b/src/graphics/StdPNG.cpp @@ -225,7 +225,7 @@ bool CPNGFile::SetPix(int iX, int iY, DWORD dwValue) pPix[2] = GetRedValue(dwValue); return true; case PNG_COLOR_TYPE_RGB_ALPHA: // RGBA: simply set in mem - *(unsigned long *) pPix = dwValue; + *(DWORD *) pPix = dwValue; return true; } return false;