(svn r10807) -Fix [FS#1108]: keep_all_autosaves always got ".sav" as filename, which basically means that it only kept the last autosave.

This commit is contained in:
rubidium 2007-08-06 06:23:44 +00:00
parent 83e1fdcb01
commit 51f773bd16
1 changed files with 1 additions and 1 deletions

View File

@ -1023,7 +1023,7 @@ static void DoAutosave()
SetDParam(0, _local_player);
SetDParam(1, _date);
GetString(buf, STR_4004, lastof(buf));
ttd_strlcpy(buf, ".sav", sizeof(buf));
ttd_strlcat(buf, ".sav", lengthof(buf));
} else {
/* generate a savegame name and number according to _patches.max_num_autosaves */
snprintf(buf, sizeof(buf), "autosave%d.sav", _autosave_ctr);