diff options
author | rubidium <rubidium@openttd.org> | 2014-04-20 14:55:28 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2014-04-20 14:55:28 +0000 |
commit | c8fffcd5ce86b35d1ef3101dba776a58e6ab20b5 (patch) | |
tree | 7a1bbd444c6f05821ec92b2f7b001c428a9221f0 /src/blitter | |
parent | ddc35bc252ef4f1925b1ea2d5b3ef4809c7c6c39 (diff) | |
download | openttd-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/blitter')
-rw-r--r-- | src/blitter/32bpp_sse2.cpp | 1 |
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]; |