From: David Y. <hob...@gm...> - 2006-08-23 04:30:28
|
On 8/21/06, David Yoder <hob...@gm...> wrote: > > 828 SDL_BlitSurface(Tux[tux_frame], NULL, screen, > &Tuxdest); > (gdb) Fatal signal: Segmentation Fault (SDL Parachute Deployed) > Indeed the problem was there. tux_frame was not getting set for the path through the code in which <esc> is pressed before animation is done. I just initialized tux_frame. David tuxtype-dmysegfault.patch ==================== diff -urN tuxtype/branches/tuxtype1/tuxtype/graphics.c tuxtype-dmysegfault/branches/tuxtype1/tuxtype/graphics.c --- tuxtype/branches/tuxtype1/tuxtype/graphics.c 2006-08-22 23:06: 37.000000000 -0500 +++ tuxtype-dmysegfault/branches/tuxtype1/tuxtype/graphics.c 2006-08-22 23:06:13.000000000 -0500 @@ -329,7 +329,7 @@ back_h; int i, j, - tux_frame; + tux_frame = 1; int x = 0; int y = 0; int dirx = 1; |