Remove FPS from being next to the version string
[oweals/minetest.git] / src / player.cpp
index 0d506ec99a8e4ceb46bc73814afdd84a1c984b4b..40d403952bbbeac0b0c5822d8ef1803212dffc60 100644 (file)
@@ -100,6 +100,7 @@ Player::Player(IGameDef *gamedef):
 
 Player::~Player()
 {
+       clearHud();
 }
 
 // Horizontal acceleration (X and Z), Y direction is ignored
@@ -314,6 +315,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);