aboutsummaryrefslogtreecommitdiff
path: root/src/environment.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/environment.cpp')
-rw-r--r--src/environment.cpp1
1 files changed, 1 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;