Fix garbage string being drawn on record attack menu

Pretty silly of me to assume it would be NUL-terminated by default.
This commit is contained in:
Steel Titanium 2019-11-03 21:43:09 -05:00
parent ea085a4c5b
commit 0a33e47619

View file

@ -8723,6 +8723,10 @@ void M_DrawTimeAttackMenu(void)
char beststr[40];
char reqscore[40], reqtime[40], reqrings[40];
strcpy(reqscore, "\0");
strcpy(reqtime, "\0");
strcpy(reqrings, "\0");
M_DrawLevelPlatterHeader(32-lsheadingheight/2, cv_nextmap.string, true, false);
// A 160x100 image of the level as entry MAPxxP