Skip to content
Permalink
Browse files

Make player files saving again

  • Loading branch information
SmallJoker authored and sapier committed Jun 28, 2014
1 parent 897c218 commit 3c5df42a17886395cee6141663f84dba15bd11d9
Showing with 2 additions and 0 deletions.
  1. +1 −0 src/environment.cpp
  2. +1 −0 src/player.cpp
@@ -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;
@@ -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);

0 comments on commit 3c5df42

Please sign in to comment.
You can’t perform that action at this time.