summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordominik <dominik@openttd.org>2004-12-22 15:32:50 +0000
committerdominik <dominik@openttd.org>2004-12-22 15:32:50 +0000
commit209e2624c7615176dcf292c56d9133a6d902ed2b (patch)
treea3fe2755fab8fdee26a84c3e178c842842d95647
parent38b8b7848f169db08549b97954fd8810a3d0f3bd (diff)
downloadopenttd-209e2624c7615176dcf292c56d9133a6d902ed2b.tar.xz
(svn r1218) Fix: Autosaves go to the correct folder again with keep_all_autosave enabled
-rw-r--r--ttd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ttd.c b/ttd.c
index 50cc44610..3d7210bc8 100644
--- a/ttd.c
+++ b/ttd.c
@@ -1041,7 +1041,7 @@ static void DoAutosave()
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;