hedgewars/uStore.pas
changeset 12758 49c31d8cc740
parent 12711 20dbb3a03e61
child 12759 df9d9d19406a
--- a/hedgewars/uStore.pas	Tue Oct 24 21:59:06 2017 +0200
+++ b/hedgewars/uStore.pas	Tue Oct 24 18:28:59 2017 -0400
@@ -473,7 +473,7 @@
 {$ELSE}
                     if checkSum then
                         for y := 0 to tmpsurf^.h-1 do
-                            syncedPixelDigest:= Adler32Update(syncedPixelDigest, @PLongWordArray(tmpsurf^.pixels)^[y*tmpsurf^.w], tmpsurf^.w);
+                            syncedPixelDigest:= Adler32Update(syncedPixelDigest, @PByteArray(tmpsurf^.pixels)^[y*tmpsurf^.pitch], tmpsurf^.w);
 
                     if saveSurf then
                         Surface:= tmpsurf