summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-07-27 15:56:33 +0300
committerAndrei Karas <akaras@inbox.ru>2017-07-27 16:03:25 +0300
commit48942a35fdd7c1b1e7f5ab7833c74196a0f6c942 (patch)
treea44f867353a5e6d6ac7a251ed8b341b0846dc233 /src
parentd1e01a763d76a241943a21993adba4e6492426dd (diff)
downloadmanaverse-48942a35fdd7c1b1e7f5ab7833c74196a0f6c942.tar.gz
manaverse-48942a35fdd7c1b1e7f5ab7833c74196a0f6c942.tar.bz2
manaverse-48942a35fdd7c1b1e7f5ab7833c74196a0f6c942.tar.xz
manaverse-48942a35fdd7c1b1e7f5ab7833c74196a0f6c942.zip
Fix crash in help window links.
Diffstat (limited to 'src')
-rw-r--r--src/gui/windows/helpwindow.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/windows/helpwindow.cpp b/src/gui/windows/helpwindow.cpp
index cd6e37941..1cfb30e2b 100644
--- a/src/gui/windows/helpwindow.cpp
+++ b/src/gui/windows/helpwindow.cpp
@@ -111,7 +111,8 @@ void HelpWindow::handleLink(const std::string &link,
{
if (!strStartWith(link, "http://") && !strStartWith(link, "https://"))
{
- const std::string &helpFile = link;
+ // need use separate variable
+ const std::string helpFile = link;
loadHelp(helpFile);
}
else