(svn r10242) -Fix: avoid a segfault if you move your mouse at startup with 32bpp-anim
authortruelight
Thu, 21 Jun 2007 12:45:41 +0000
changeset 7482 ec4c1ff22d83
parent 7481 699607d457a0
child 7483 44be8159472b
(svn r10242) -Fix: avoid a segfault if you move your mouse at startup with 32bpp-anim
src/blitter/32bpp_anim.cpp
--- a/src/blitter/32bpp_anim.cpp	Thu Jun 21 12:36:46 2007 +0000
+++ b/src/blitter/32bpp_anim.cpp	Thu Jun 21 12:45:41 2007 +0000
@@ -186,6 +186,8 @@
 	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--) {