X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Finit.c;h=d3b33ec219b723d71da1cd2011f07267fe7b2407;hp=683bacdb44dcf328f2ce18389100ffe4a809de46;hb=f93552d6cd84e880ee73d4864018167aefc1bb79;hpb=34dc736661e297f75d604335a7d85ea34d14c55d diff --git a/src/init.c b/src/init.c index 683bacdb..d3b33ec2 100644 --- a/src/init.c +++ b/src/init.c @@ -1301,8 +1301,8 @@ static void set_graphic_parameters_ext(int graphic, int *parameter, g->anim_delay_random = 0; g->post_delay_fixed = 0; g->post_delay_random = 0; - g->init_event = ANIM_EVENT_DEFAULT; - g->anim_event = ANIM_EVENT_DEFAULT; + g->init_event = ANIM_EVENT_UNDEFINED; + g->anim_event = ANIM_EVENT_UNDEFINED; g->init_event_action = -1; g->anim_event_action = -1; g->draw_masked = FALSE; @@ -1723,6 +1723,8 @@ static void InitGraphicInfo(void) -1 }; + FreeGlobalAnimEventInfo(); + checked_free(graphic_info); graphic_info = checked_calloc(num_images * sizeof(struct GraphicInfo));