mirror of https://github.com/OpenTTD/OpenTTD
(svn r10242) -Fix: avoid a segfault if you move your mouse at startup with 32bpp-anim
parent
3fa3d2e365
commit
1fa725ecae
|
@ -186,6 +186,8 @@ void Blitter_32bppAnim::CopyToBuffer(const void *video, void *dst, int width, in
|
||||||
uint32 *src = (uint32 *)video;
|
uint32 *src = (uint32 *)video;
|
||||||
uint8 *anim_line;
|
uint8 *anim_line;
|
||||||
|
|
||||||
|
if (this->anim_buf == NULL) return;
|
||||||
|
|
||||||
anim_line = ((uint32 *)video - (uint32 *)_screen.dst_ptr) + this->anim_buf;
|
anim_line = ((uint32 *)video - (uint32 *)_screen.dst_ptr) + this->anim_buf;
|
||||||
|
|
||||||
for (; height > 0; height--) {
|
for (; height > 0; height--) {
|
||||||
|
|
Loading…
Reference in New Issue