diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-03-07 22:28:32 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-03-07 22:28:32 +0300 |
commit | b384454131c7bd50ba171b1fdbad64cfc83d1ffb (patch) | |
tree | 65e2294544088a4e9ed440cb7ba1c01b347dc700 /src/localplayer.cpp | |
parent | b5aaeb9fe58a43717de109c7398f44b19193bc99 (diff) | |
download | manaplus-b384454131c7bd50ba171b1fdbad64cfc83d1ffb.tar.gz manaplus-b384454131c7bd50ba171b1fdbad64cfc83d1ffb.tar.bz2 manaplus-b384454131c7bd50ba171b1fdbad64cfc83d1ffb.tar.xz manaplus-b384454131c7bd50ba171b1fdbad64cfc83d1ffb.zip |
Restore volume in disconnect in afk mode.
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; } |