diff options
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r-- | src/localplayer.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp index 1acc6a938..e8c218292 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -208,8 +208,12 @@ LocalPlayer::~LocalPlayer() config.removeListeners(this); serverConfig.removeListener("enableBuggyServers", this); - delete mAwayDialog; - mAwayDialog = nullptr; + if (mAwayDialog) + { + sound.volumeRestore(); + delete mAwayDialog; + mAwayDialog = nullptr; + } delete mAwayListener; mAwayListener = nullptr; } |