Correct the month used in automatic names of savegames created by the "save" CON command.

git-svn-id: https://svn.eduke32.com/eduke32@5135 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2015-04-12 08:06:20 +00:00
parent 8834dfbc7d
commit 27e83829c9

View file

@ -3420,7 +3420,7 @@ nullquote:
time_t curtime = time(NULL);
struct tm *timeptr = localtime(&curtime);
Bsnprintf(ud.savegame[g_lastSaveSlot], sizeof(ud.savegame[g_lastSaveSlot]), "Auto %.4d%.2d%.2d %.2d%.2d%.2d\n",
timeptr->tm_year + 1900, timeptr->tm_mon, timeptr->tm_mday,
timeptr->tm_year + 1900, timeptr->tm_mon + 1, timeptr->tm_mday,
timeptr->tm_hour, timeptr->tm_min, timeptr->tm_sec);
}