(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.
authorDarkvater
Tue, 19 Jul 2005 20:43:53 +0000
changeset 2128 f5baf0b86451
parent 2127 5ec30e7c124e
child 2129 9095824555e6
(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.
misc_gui.c
--- a/misc_gui.c	Tue Jul 19 16:34:46 2005 +0000
+++ b/misc_gui.c	Tue Jul 19 20:43:53 2005 +0000
@@ -1292,7 +1292,7 @@
 					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);
 				}