JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
oops, I wasn't using nrocks in my timing calculations. doh\!
[vor.git] / file.c
diff --git a/file.c b/file.c
index 57cfc56..18193b2 100644 (file)
--- a/file.c
+++ b/file.c
@@ -82,7 +82,10 @@ find_score_file(void)
 {
        g_score_file = add_path("scores");
        g_score_mode = 0111;
-       if(is_file(g_score_file)) return true;
+       if(is_file(g_score_file)) {
+               g_score_file = strdup(g_score_file);
+               return true;
+       }
 
        g_score_file = malloc(MAX_PATH_LEN);
        snprintf(g_score_file, MAX_PATH_LEN,