summaryrefslogtreecommitdiff
path: root/src/gui/helpwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-12-06 01:30:04 +0300
committerAndrei Karas <akaras@inbox.ru>2011-12-06 01:30:04 +0300
commit7a2d595785a61ec874ddc566e0d999495684c2aa (patch)
treec0b6d8b0137e002eb4847d8ead44562264ad1e18 /src/gui/helpwindow.cpp
parent2d452dd8faf2529fda01913b0ab26f4a1f22ef3d (diff)
downloadmanaplus-7a2d595785a61ec874ddc566e0d999495684c2aa.tar.gz
manaplus-7a2d595785a61ec874ddc566e0d999495684c2aa.tar.bz2
manaplus-7a2d595785a61ec874ddc566e0d999495684c2aa.tar.xz
manaplus-7a2d595785a61ec874ddc566e0d999495684c2aa.zip
Add gm commands to chat autocomplete list (only for gms)
Diffstat (limited to 'src/gui/helpwindow.cpp')
-rw-r--r--src/gui/helpwindow.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/helpwindow.cpp b/src/gui/helpwindow.cpp
index 49f309bca..b1175d709 100644
--- a/src/gui/helpwindow.cpp
+++ b/src/gui/helpwindow.cpp
@@ -114,16 +114,16 @@ void HelpWindow::loadFile(const std::string &file)
{
std::string name = helpPath + langs[0] + "/" + file + ".txt";
if (resman->exists(name))
- lines = resman->loadTextFile(name);
+ resman->loadTextFile(name, lines);
if (lines.empty() && langs.size() > 1)
{
name = helpPath + langs[1] + "/" + file + ".txt";
- lines = resman->loadTextFile(name);
+ resman->loadTextFile(name, lines);
}
}
if (lines.empty())
- lines = resman->loadTextFile(helpPath + file + ".txt");
+ resman->loadTextFile(helpPath + file + ".txt", lines);
for (unsigned int i = 0; i < lines.size(); ++i)
mBrowserBox->addRow(lines[i]);