[Tux4kids-commits] r382 - tuxmath/trunk/src

tholy-guest at alioth.debian.org tholy-guest at alioth.debian.org
Mon Dec 24 03:12:24 UTC 2007


Author: tholy-guest
Date: 2007-12-24 03:12:23 +0000 (Mon, 24 Dec 2007)
New Revision: 382

Modified:
   tuxmath/trunk/src/fileops.c
Log:
Fix bug arising from re-reading high scores.


Modified: tuxmath/trunk/src/fileops.c
===================================================================
--- tuxmath/trunk/src/fileops.c	2007-12-23 13:12:38 UTC (rev 381)
+++ tuxmath/trunk/src/fileops.c	2007-12-24 03:12:23 UTC (rev 382)
@@ -1049,6 +1049,7 @@
   fp = fopen(opt_path, "r");
   if (fp) /* file exists */
   {
+    initialize_scores();  // clear any previous values
     read_high_scores_fp(fp);
     fclose(fp);
     fp = NULL;




More information about the Tux4kids-commits mailing list