'selectsaved' again - update EDITLEVEL again

The role, race, gender, and alignment string values are 3 letters
preceded by a dash.  I was looking at "name-race-role-gend-algn"
and mistakenly treated them as 4 letters preceded by a dash.

Fixing that changes PL_NSIZ_PLUS and there is one item of that size
written into save files, so the fix invalidates existing save files.
This commit is contained in:
PatR
2024-10-11 22:35:38 -07:00
parent 1f36b98b8f
commit 11a4fe42de
3 changed files with 3 additions and 3 deletions

View File

@@ -1076,7 +1076,7 @@ savelevchn(NHFILE *nhfp)
void
store_plname_in_file(NHFILE *nhfp)
{
char hero[PL_NSIZ_PLUS]; /* [PL_NSIZ + 4*4 + 1] */
char hero[PL_NSIZ_PLUS]; /* [PL_NSIZ + 4*(1+3) + 1] */
int plsiztmp = (int) sizeof hero;
(void) memset((genericptr_t) hero, '\0', sizeof hero);