summaryrefslogtreecommitdiff
path: root/src/gui/shopwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-23 22:20:47 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-24 21:08:17 +0300
commit576b7dca4676ba2c1ea63afb6bbc96fd11183048 (patch)
tree5eef4087911e0e74ebcfb4d2026b811f0256cc71 /src/gui/shopwindow.cpp
parentc97f245c597ebe8f488e72c435960dbee9bf66c6 (diff)
downloadmv-576b7dca4676ba2c1ea63afb6bbc96fd11183048.tar.gz
mv-576b7dca4676ba2c1ea63afb6bbc96fd11183048.tar.bz2
mv-576b7dca4676ba2c1ea63afb6bbc96fd11183048.tar.xz
mv-576b7dca4676ba2c1ea63afb6bbc96fd11183048.zip
improve dirs usage in Client.
Diffstat (limited to 'src/gui/shopwindow.cpp')
-rw-r--r--src/gui/shopwindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/shopwindow.cpp b/src/gui/shopwindow.cpp
index db360fd33..04b994b7f 100644
--- a/src/gui/shopwindow.cpp
+++ b/src/gui/shopwindow.cpp
@@ -366,7 +366,7 @@ void ShopWindow::loadList()
mBuyShopItems->clear();
mSellShopItems->clear();
- const std::string shopListName = Client::getServerConfigDirectory()
+ const std::string shopListName = client->getServerConfigDirectory()
+ "/shoplist.txt";
if (!stat(shopListName.c_str(), &statbuf) && S_ISREG(statbuf.st_mode))
@@ -416,7 +416,7 @@ void ShopWindow::saveList() const
return;
std::ofstream shopFile;
- const std::string shopListName = Client::getServerConfigDirectory()
+ const std::string shopListName = client->getServerConfigDirectory()
+ "/shoplist.txt";
std::map<int, ShopItem*> mapItems;