more nethack -s

For Unix, set plname[] to the default value (player's username)
before running prscore() for 'nethack -s'.  Avoids reference to
mysterious "hackplayer" if no entries are found.
This commit is contained in:
PatR
2022-11-17 13:19:19 -08:00
parent a96b3d0b03
commit 472f293b84

View File

@@ -731,6 +731,7 @@ scores_only(int argc, char **argv, const char *dir)
panictrace_setsignals(TRUE);
#endif
#endif
(void) whoami(); /* set up default plname[] */
prscore(argc, argv);