diff options
author | SmallJoker <st.rentsch@hotmail.com> | 2014-06-28 17:01:15 +0200 |
---|---|---|
committer | sapier <Sapier at GMX dot net> | 2014-06-29 00:45:04 +0200 |
commit | 3c5df42a17886395cee6141663f84dba15bd11d9 (patch) | |
tree | b73fa0634bf6679302006f157fc7a189de530ed1 /src | |
parent | 897c218b96e4eaebb0035c6aedb1585ddb5fb533 (diff) | |
download | minetest-3c5df42a17886395cee6141663f84dba15bd11d9.tar.gz minetest-3c5df42a17886395cee6141663f84dba15bd11d9.tar.bz2 minetest-3c5df42a17886395cee6141663f84dba15bd11d9.zip |
Make player files saving again
Diffstat (limited to 'src')
-rw-r--r-- | src/environment.cpp | 1 | ||||
-rw-r--r-- | src/player.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/environment.cpp b/src/environment.cpp index 845928a20..24a498aa9 100644 --- a/src/environment.cpp +++ b/src/environment.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; diff --git a/src/player.cpp b/src/player.cpp index 0d506ec99..f2ff59027 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -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); |