Fix stupid oversight: Query the correct variable for the quicksave name.

This commit is contained in:
Yamagi 2019-10-25 18:09:08 +02:00
parent 123228961d
commit 9cc466b2c2

View file

@ -2289,7 +2289,7 @@ Create_Savestrings(void)
FS_Read(tmp, sizeof(tmp), f); FS_Read(tmp, sizeof(tmp), f);
FS_FCloseFile(f); FS_FCloseFile(f);
if (strlen(name) > 12) if (strlen(tmp) > 12)
{ {
/* Horrible hack to construct a nice looking 'QUICKSAVE Level Name' /* Horrible hack to construct a nice looking 'QUICKSAVE Level Name'
comment string matching the 'ENTERING Level Name' comment string comment string matching the 'ENTERING Level Name' comment string
@ -2300,7 +2300,7 @@ Create_Savestrings(void)
} }
else else
{ {
Q_strlcpy(m_quicksavestring, name, sizeof(m_quicksavestring)); Q_strlcpy(m_quicksavestring, tmp, sizeof(m_quicksavestring));
} }
m_quicksavevalid = true; m_quicksavevalid = true;
} }