(svn r1218) Fix: Autosaves go to the correct folder again with keep_all_autosave enabled
authordominik
Wed, 22 Dec 2004 15:32:50 +0000
changeset 760 8fda8a13270c
parent 759 a445474d7c21
child 761 9bfb58cb3a69
(svn r1218) Fix: Autosaves go to the correct folder again with keep_all_autosave enabled
ttd.c
--- a/ttd.c	Wed Dec 22 13:19:26 2004 +0000
+++ b/ttd.c	Wed Dec 22 15:32:50 2004 +0000
@@ -1041,7 +1041,7 @@
 		SetDParam(0, p->name_1);
 		SetDParam(1, p->name_2);
 		SetDParam(2, _date);
-		s= (char*)GetString(buf + strlen(_path.autosave_dir) + strlen(PATHSEP) - 1, STR_4004);
+		s= (char*)GetString(buf + strlen(_path.autosave_dir) + strlen(PATHSEP), STR_4004);
 		strcpy(s, ".sav");
 	} else {
 		int n = _autosave_ctr;