diff options
author | truelight <truelight@openttd.org> | 2007-06-21 12:45:41 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2007-06-21 12:45:41 +0000 |
commit | 426de65b18af74b168fb84a79f45130c8f6d975e (patch) | |
tree | dc3862171ce868f942f036e6a2feef59115594ab /src | |
parent | d614cec205a2578144935152a5c5b9e1e3c0f93d (diff) | |
download | openttd-426de65b18af74b168fb84a79f45130c8f6d975e.tar.xz |
(svn r10242) -Fix: avoid a segfault if you move your mouse at startup with 32bpp-anim
Diffstat (limited to 'src')
-rw-r--r-- | src/blitter/32bpp_anim.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/blitter/32bpp_anim.cpp b/src/blitter/32bpp_anim.cpp index d207173d3..1ccd2b7a9 100644 --- a/src/blitter/32bpp_anim.cpp +++ b/src/blitter/32bpp_anim.cpp @@ -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--) { |