From 576b7dca4676ba2c1ea63afb6bbc96fd11183048 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 23 Aug 2013 22:20:47 +0300 Subject: improve dirs usage in Client. --- src/gui/shopwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/shopwindow.cpp') 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 mapItems; -- cgit v1.2.3-60-g2f50