Skip to content

Commit

Permalink
Fix useless cast
Browse files Browse the repository at this point in the history
  • Loading branch information
GregoryLundberg committed Nov 30, 2017
1 parent 08f055c commit 00909ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/savegame.cpp
Expand Up @@ -525,7 +525,7 @@ filesystem::scoped_ostream savegame::open_save_game(const std::string &label)
replace_space2underbar(name);

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) {
throw game::save_game_failed(e.what());
}
Expand Down

0 comments on commit 00909ea

Please sign in to comment.