From 529d5ac21229ba7678bba9832f69448898b159b9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 21 Sep 2016 01:06:13 +0300 Subject: Fix code style. --- src/gui/windows/shopwindow.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/gui') diff --git a/src/gui/windows/shopwindow.cpp b/src/gui/windows/shopwindow.cpp index 684f51a19..1b9d0a94a 100644 --- a/src/gui/windows/shopwindow.cpp +++ b/src/gui/windows/shopwindow.cpp @@ -819,6 +819,10 @@ void ShopWindow::sendMessage(const std::string &nick, void ShopWindow::showList(const std::string &nick, std::string data) { + const Inventory *const inv = PlayerInfo::getInventory(); + if (!inv) + return; + BuyDialog *buyDialog = nullptr; SellDialog *sellDialog = nullptr; if (data.find("B1") == 0) @@ -836,10 +840,6 @@ void ShopWindow::showList(const std::string &nick, std::string data) return; } - const Inventory *const inv = PlayerInfo::getInventory(); - if (!inv) - return; - if (buyDialog) buyDialog->setMoney(PlayerInfo::getAttribute(Attributes::MONEY)); if (sellDialog) -- cgit v1.2.3-70-g09d2