mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(svn r10242) -Fix: avoid a segfault if you move your mouse at startup with 32bpp-anim
This commit is contained in:
parent
d614cec205
commit
426de65b18
@ -186,6 +186,8 @@ void Blitter_32bppAnim::CopyToBuffer(const void *video, void *dst, int width, in
|
||||
uint32 *src = (uint32 *)video;
|
||||
uint8 *anim_line;
|
||||
|
||||
if (this->anim_buf == NULL) return;
|
||||
|
||||
anim_line = ((uint32 *)video - (uint32 *)_screen.dst_ptr) + this->anim_buf;
|
||||
|
||||
for (; height > 0; height--) {
|
||||
|
Loading…
Reference in New Issue
Block a user