Skip to content

Commit

Permalink
Fix emptying of ostringstream
Browse files Browse the repository at this point in the history
  • Loading branch information
Eli2 committed Jan 14, 2017
1 parent c9fc8d8 commit 28bcf7f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/core/SaveGame.cpp
Expand Up @@ -126,9 +126,8 @@ void SaveGameList::update(bool verbose) {
// Instead, choose a unique number.
res::path thumbnail_res;
size_t i = 0;
std::ostringstream oss;
do {
oss.clear();
std::ostringstream oss;
oss << "thumbnail" << i << SAVEGAME_THUMBNAIL.ext();
thumbnail_res = res::path("save") / oss.str();
i++;
Expand Down

0 comments on commit 28bcf7f

Please sign in to comment.