mirror of
https://github.com/spiffcode/hostile-takeover.git
synced 2026-05-12 18:29:37 -06:00
Use the file modified time, not 0. This change requires default alignment.
This commit is contained in:
parent
b0285b45c6
commit
2fd46433f2
@ -196,7 +196,7 @@ bool HostGetSaveGameName(int nGame, char *psz, int cb, Date *pdate, int *pnHours
|
||||
if (stat(szPath, &st) > 0) {
|
||||
return false;
|
||||
}
|
||||
time_t tim = 0;
|
||||
time_t tim = st.st_mtimespec.tv_sec;
|
||||
struct tm *ptm = localtime(&tim);
|
||||
*pnHours24 = ptm->tm_hour;
|
||||
*pnMinutes = ptm->tm_min;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user