]> granicus.if.org Git - nethack/commitdiff
yet another bit
authornethack.allison <nethack.allison>
Mon, 10 Jan 2005 01:13:03 +0000 (01:13 +0000)
committernethack.allison <nethack.allison>
Mon, 10 Jan 2005 01:13:03 +0000 (01:13 +0000)
src/files.c

index 713ea6c06f17813450164b1987c3ddb8588ad32b..372b091e92c80f546b6fb5856453eb2ae27732b0 100644 (file)
@@ -1035,9 +1035,9 @@ get_saved_games()
        Sprintf(SAVEF, "%s*.NetHack-saved-game", encodedfnamebuf);
        fq_save = fqname(SAVEF, SAVEPREFIX, 0);
 
+       n = 0;
        foundfile = foundfile_buffer();
        if (findfirst((char *)fq_save)) {
-           n = 0;
            do {
                ++n;
            } while (findnext());