diff options
author | tron <tron@openttd.org> | 2005-03-12 09:24:27 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-03-12 09:24:27 +0000 |
commit | 70be35f319ecf29f81332ef124475b8ed748d5e4 (patch) | |
tree | 559708f102706f5d45eb2939ca992464bf78da91 | |
parent | e76912303c757f2b78443ac0a7afb8370b85e7c4 (diff) | |
download | openttd-70be35f319ecf29f81332ef124475b8ed748d5e4.tar.xz |
(svn r1999) r1990 broke savegame deletion, fix that [1161729]
-rw-r--r-- | os2.c | 2 | ||||
-rw-r--r-- | unix.c | 2 | ||||
-rw-r--r-- | win32.c | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -403,7 +403,7 @@ void FiosDelete(const char *name) { char path[512]; - FiosMakeSavegameName(path, name); + snprintf(path, lengthof(path), "%s\\%s", _fios_path, name); unlink(path); } @@ -334,7 +334,7 @@ void FiosDelete(const char *name) { char path[512]; - FiosMakeSavegameName(path, name); + snprintf(path, lengthof(path), "%s/%s", _fios_path, name); unlink(path); } @@ -1858,7 +1858,7 @@ void FiosDelete(const char *name) { char path[512]; - FiosMakeSavegameName(path, name); + snprintf(path, lengthof(path), "%s\\%s", _fios_path, name); DeleteFile(path); } |