1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-12 09:09:09 +00:00

(svn r10242) -Fix: avoid a segfault if you move your mouse at startup with 32bpp-anim

This commit is contained in:
truelight
2007-06-21 12:45:41 +00:00
parent 3fa3d2e365
commit 1fa725ecae

View File

@@ -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--) {