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