mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r26473) -Fix: make sure there is no uninitialised sprite data; the other blitters cleared the memory too
This commit is contained in:
parent
ddc35bc252
commit
c8fffcd5ce
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue