From f24ddad3fa0f843eb29a281426151cf1a5f31f4b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 4 Sep 2012 23:47:11 +0300 Subject: add const to more classes, fix other small style issues. --- src/net/ea/buysellhandler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/net/ea/buysellhandler.cpp') diff --git a/src/net/ea/buysellhandler.cpp b/src/net/ea/buysellhandler.cpp index 9cee4d434..7a66df305 100644 --- a/src/net/ea/buysellhandler.cpp +++ b/src/net/ea/buysellhandler.cpp @@ -151,7 +151,8 @@ void BuySellHandler::processNpcSell(Net::MessageIn &msg, int offset) const int value = msg.readInt32(); msg.readInt32(); // value - const Item *const item = PlayerInfo::getInventory()->getItem(index); + const Item *const item = PlayerInfo::getInventory() + ->getItem(index); if (item && !(item->isEquipped())) dialog->addItem(item, value); -- cgit v1.2.3-60-g2f50