summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2014-04-20 14:55:28 +0000
committerrubidium <rubidium@openttd.org>2014-04-20 14:55:28 +0000
commitc8fffcd5ce86b35d1ef3101dba776a58e6ab20b5 (patch)
tree7a1bbd444c6f05821ec92b2f7b001c428a9221f0 /src
parentddc35bc252ef4f1925b1ea2d5b3ef4809c7c6c39 (diff)
downloadopenttd-c8fffcd5ce86b35d1ef3101dba776a58e6ab20b5.tar.xz
(svn r26473) -Fix: make sure there is no uninitialised sprite data; the other blitters cleared the memory too
Diffstat (limited to 'src')
-rw-r--r--src/blitter/32bpp_sse2.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/blitter/32bpp_sse2.cpp b/src/blitter/32bpp_sse2.cpp
index 40b3620a2..5b7316cce 100644
--- a/src/blitter/32bpp_sse2.cpp
+++ b/src/blitter/32bpp_sse2.cpp
@@ -36,6 +36,7 @@ Sprite *Blitter_32bppSSE_Base::Encode(const SpriteLoader::Sprite *sprite, Alloca
/* Calculate sizes and allocate. */
SpriteData sd;
+ memset(&sd, 0, sizeof(sd));
uint all_sprites_size = 0;
for (ZoomLevel z = zoom_min; z <= zoom_max; z++) {
const SpriteLoader::Sprite *src_sprite = &sprite[z];