Skip to content

Commit

Permalink
Make player files saving again
Browse files Browse the repository at this point in the history
  • Loading branch information
SmallJoker authored and sapier committed Jun 28, 2014
1 parent 897c218 commit 3c5df42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/environment.cpp
Expand Up @@ -462,6 +462,7 @@ Player *ServerEnvironment::loadPlayer(const std::string &playername)
return NULL;
}
testplayer.deSerialize(is, path);
is.close();
if (testplayer.getName() == playername) {
*player = testplayer;
found = true;
Expand Down
1 change: 1 addition & 0 deletions src/player.cpp
Expand Up @@ -314,6 +314,7 @@ void RemotePlayer::save(std::string savedir)
return;
}
testplayer.deSerialize(is, path);
is.close();
if (strcmp(testplayer.getName(), m_name) == 0) {
// Open file and serialize
std::ostringstream ss(std::ios_base::binary);
Expand Down

0 comments on commit 3c5df42

Please sign in to comment.