From 2fd46433f2eb8a7c56f1c22efcb000866704b799 Mon Sep 17 00:00:00 2001 From: Scott Ludwig Date: Fri, 1 Jan 2016 13:55:45 -0800 Subject: [PATCH] Use the file modified time, not 0. This change requires default alignment. --- game/iphone/savegame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/iphone/savegame.cpp b/game/iphone/savegame.cpp index 5ca01fb..77a20ad 100644 --- a/game/iphone/savegame.cpp +++ b/game/iphone/savegame.cpp @@ -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;