summaryrefslogtreecommitdiff
path: root/misc_gui.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2005-07-19 20:43:53 +0000
committerDarkvater <darkvater@openttd.org>2005-07-19 20:43:53 +0000
commit99c17f8ac7bb12874739baacdfce9e82c956fe75 (patch)
treeacc31e8a761d458e6a9b152580c706a62fbb965f /misc_gui.c
parente3a75901c9b4708e4f22b7e90047d83453d29378 (diff)
downloadopenttd-99c17f8ac7bb12874739baacdfce9e82c956fe75.tar.xz
(svn r2638) - Fix: Unable to delete savegames. Deleting TTDLX savegames is still broken as it was always broken, but since they don't even show up; we might as well call it a feature.
Diffstat (limited to 'misc_gui.c')
-rw-r--r--misc_gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc_gui.c b/misc_gui.c
index f7068dd3f..b012469b6 100644
--- a/misc_gui.c
+++ b/misc_gui.c
@@ -1292,7 +1292,7 @@ static void SaveLoadDlgWndProc(Window *w, WindowEvent *e)
DeleteWindow(w);
} else {
// SLD_SAVE_GAME, SLD_SAVE_SCENARIO copy clicked name to editbox
- ttd_strlcpy(WP(w, querystr_d).text.buf, file->title, WP(w, querystr_d).text.maxlength);
+ ttd_strlcpy(WP(w, querystr_d).text.buf, file->name, WP(w, querystr_d).text.maxlength);
UpdateTextBufferSize(&WP(w, querystr_d).text);
InvalidateWidget(w, 9);
}