From 426de65b18af74b168fb84a79f45130c8f6d975e Mon Sep 17 00:00:00 2001 From: truelight Date: Thu, 21 Jun 2007 12:45:41 +0000 Subject: (svn r10242) -Fix: avoid a segfault if you move your mouse at startup with 32bpp-anim --- src/blitter/32bpp_anim.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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--) { -- cgit v1.2.3-70-g09d2