Fix useless cast
This commit is contained in:
parent
ee5a6e03f4
commit
b42ca757da
1 changed files with 1 additions and 1 deletions
|
@ -525,7 +525,7 @@ filesystem::scoped_ostream savegame::open_save_game(const std::string &label)
|
||||||
replace_space2underbar(name);
|
replace_space2underbar(name);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
return filesystem::scoped_ostream(filesystem::ostream_file(filesystem::get_saves_dir() + "/" + name));
|
return filesystem::ostream_file(filesystem::get_saves_dir() + "/" + name);
|
||||||
} catch(filesystem::io_exception& e) {
|
} catch(filesystem::io_exception& e) {
|
||||||
throw game::save_game_failed(e.what());
|
throw game::save_game_failed(e.what());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue