]> granicus.if.org Git - nethack/commitdiff
more files
authornhmall <nhmall@nethack.org>
Sun, 8 Dec 2019 12:35:43 +0000 (07:35 -0500)
committernhmall <nhmall@nethack.org>
Sun, 8 Dec 2019 12:35:43 +0000 (07:35 -0500)
src/files.c

index 33f7928b86c58cf9dc5157cee4e98006e07c0c30..42919548018f7a62a884a928929f497855358722 100644 (file)
@@ -944,7 +944,7 @@ void
 set_savefile_name(regularize_it)
 boolean regularize_it;
 {
-    int idx = 0, regoffset = 0, overflow = 0,  
+    int idx = historical, regoffset = 0, overflow = 0,  
         indicator_spot = 0; /* 0=no indicator, 1=before ext, 2=after ext */
     const char *postappend = (const char *) 0,
                *sfindicator = (const char *) 0;
@@ -958,7 +958,6 @@ boolean regularize_it;
            place it into the save file.
         */
         idx = historical;
-        sfindicator = sfoprocs[idx].ext;
     }
 #ifdef VMS
     Sprintf(g.SAVEF, "[.save]%d%s", getuid(), g.plname);