[five-or-more] reset the game before starting it



commit 2e79cd17d26da2991d3a3fa69a93a45e6fe2bdfb
Author: Thomas Hindoe Paaboel Andersen <phomes gmail com>
Date:   Mon Feb 18 22:44:17 2013 +0100

    reset the game before starting it
    
    Otherwise we use uninitialised mem for e.g. the preview array.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=675628

 src/glines.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/glines.c b/src/glines.c
index 5d1d989..b8b47a9 100644
--- a/src/glines.c
+++ b/src/glines.c
@@ -1616,6 +1616,7 @@ activate_cb (GApplication *application)
 {
   gtk_widget_show_all (app);
 
+  reset_game ();
   start_game ();
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]