changeset 7371 | b86b05214afe |
parent 7187 | f7dc3204d457 |
child 7425 | 350b9265b7a2 |
--- a/src/misc_gui.cpp Tue Jun 12 14:22:28 2007 +0000 +++ b/src/misc_gui.cpp Tue Jun 12 15:46:34 2007 +0000 @@ -35,6 +35,7 @@ #include "date.h" #include "cargotype.h" #include "player_face.h" +#include "fileio.h" #include "fios.h" /* Variables to display file lists */ @@ -1396,6 +1397,7 @@ SetDParam(1, p->name_2); SetDParam(2, _date); GetString(_edit_str_buf, STR_4004, lastof(_edit_str_buf)); + SanitizeFilename(_edit_str_buf); } extern void StartupEngines();