From 1382ca0f0c494f2018597445f44db0034e59acea Mon Sep 17 00:00:00 2001 From: gunnar_g Date: Tue, 10 Mar 2009 13:29:51 +0000 Subject: [PATCH] initialize LiveGame->started_game to -1 (valgrind complaints) --- src/live_game.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/live_game.c b/src/live_game.c index 53522313..15053129 100644 --- a/src/live_game.c +++ b/src/live_game.c @@ -1725,12 +1725,12 @@ live_game_reset(LiveGame *live_game, Fixture *fix, gboolean free_variable) #ifdef DEBUG printf("live_game_reset\n"); #endif - gint i; if(free_variable) free_live_game(live_game); + live_game->started_game = -1; live_game->units = g_array_new(FALSE, FALSE, sizeof(LiveGameUnit)); live_game->action_ids[0] = g_array_new(FALSE, FALSE, sizeof(gint)); live_game->action_ids[1] = g_array_new(FALSE, FALSE, sizeof(gint));