Fix corruption in filenames in new savegame system

git-svn-id: https://svn.eduke32.com/eduke32@6572 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2017-12-19 01:26:18 +00:00
parent 9c695d6bc4
commit 2c48a359e2

View file

@ -63,10 +63,14 @@ typedef struct
struct savebrief_t struct savebrief_t
{ {
savebrief_t() = default; savebrief_t()
{
reset();
}
savebrief_t(char const *n) savebrief_t(char const *n)
{ {
strncpy(name, n, MAXSAVEGAMENAME); strncpy(name, n, MAXSAVEGAMENAME);
path[0] = '\0';
} }
char name[MAXSAVEGAMENAMESTRUCT]; char name[MAXSAVEGAMENAMESTRUCT];