Skip to content

Commit

Permalink
Fix silly bug in Windows code.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hawk777 committed Apr 2, 2013
1 parent 81e5ade commit 29fc675
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion savegame.cc
Expand Up @@ -96,7 +96,7 @@ void save_game(const SaveState &ss, const std::string &save_filename) {
std::ofstream ofs;
ofs.exceptions(std::ios_base::badbit | std::ios_base::failbit);
ofs.open(save_filename, std::ios_base::out | std::ios_base::binary);
if (!state.SerializeToOstream(&ofs)) {
if (!ss.SerializeToOstream(&ofs)) {
throw std::runtime_error(Glib::locale_from_utf8(Glib::ustring::compose(u8"Protobuf error saving game state to file \"%1\"!", Glib::filename_to_utf8(save_filename))));
}
ofs.close();
Expand Down

0 comments on commit 29fc675

Please sign in to comment.