From 1b500cb24655e2ad3e6c6fd20143ce0d2d070d6f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 29 May 2014 12:56:16 +0300 Subject: Move many variables from client into settings. --- src/gui/windows/shopwindow.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/gui/windows/shopwindow.cpp') diff --git a/src/gui/windows/shopwindow.cpp b/src/gui/windows/shopwindow.cpp index 2d13cf23f..51d102972 100644 --- a/src/gui/windows/shopwindow.cpp +++ b/src/gui/windows/shopwindow.cpp @@ -48,6 +48,7 @@ #include "configuration.h" #include "inventory.h" #include "item.h" +#include "settings.h" #include "shopitem.h" #include "soundmanager.h" @@ -371,7 +372,7 @@ void ShopWindow::loadList() mBuyShopItems->clear(); mSellShopItems->clear(); - const std::string shopListName = client->getServerConfigDirectory() + const std::string shopListName = settings.serverConfigDir + "/shoplist.txt"; if (!stat(shopListName.c_str(), &statbuf) && S_ISREG(statbuf.st_mode)) @@ -421,7 +422,7 @@ void ShopWindow::saveList() const return; std::ofstream shopFile; - const std::string shopListName = client->getServerConfigDirectory() + const std::string shopListName = settings.serverConfigDir + "/shoplist.txt"; std::map mapItems; -- cgit v1.2.3-60-g2f50