Fixing bug #11665:
Filename saves allow illegal characters resulting in game crash.
This commit is contained in:
parent
2b3c59b5d3
commit
e4fcaf9638
1 changed files with 5 additions and 1 deletions
|
@ -222,7 +222,11 @@ void show_objectives(game_display& disp, const config& level, const std::string&
|
|||
|
||||
bool is_illegal_file_char(char c)
|
||||
{
|
||||
return c == '/' || c == '\\' || c == ':';
|
||||
return c == '/' || c == '\\' || c == ':'
|
||||
#ifdef WIN32
|
||||
|| c == '?' || c == '|' || c == '<' || c == '>' || c == '*'
|
||||
#endif
|
||||
;
|
||||
}
|
||||
|
||||
int get_save_name(display & disp,const std::string& message, const std::string& txt_label,
|
||||
|
|
Loading…
Add table
Reference in a new issue