X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fplayer.cpp;h=40d403952bbbeac0b0c5822d8ef1803212dffc60;hb=2fee2baf98cd452f7d0e4acb6c82617b7c7b995a;hp=0d506ec99a8e4ceb46bc73814afdd84a1c984b4b;hpb=089fc010abe439aea154813e3e31bc9477a84308;p=oweals%2Fminetest.git diff --git a/src/player.cpp b/src/player.cpp index 0d506ec99..40d403952 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -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);