summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-17 10:55:20 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-17 10:55:20 +0300
commitfd050698f74b5dc7a9867bc93ba6b7c65ef2462f (patch)
tree246017e7d1b399e60a5d7b97a7106cd75587b88f /src/gui/widgets
parent4228763829f71ec4db50ed185483d7707c5e47eb (diff)
downloadmanaplus-fd050698f74b5dc7a9867bc93ba6b7c65ef2462f.tar.gz
manaplus-fd050698f74b5dc7a9867bc93ba6b7c65ef2462f.tar.bz2
manaplus-fd050698f74b5dc7a9867bc93ba6b7c65ef2462f.tar.xz
manaplus-fd050698f74b5dc7a9867bc93ba6b7c65ef2462f.zip
Remove getter for inventoryHandler.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/itemcontainer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/itemcontainer.cpp b/src/gui/widgets/itemcontainer.cpp
index d3a57a71b..aa8966620 100644
--- a/src/gui/widgets/itemcontainer.cpp
+++ b/src/gui/widgets/itemcontainer.cpp
@@ -497,7 +497,7 @@ void ItemContainer::mouseReleased(MouseEvent &event)
return;
if (index == mSelectedIndex || mSelectedIndex == -1)
return;
- Net::getInventoryHandler()->moveItem(mSelectedIndex, index);
+ inventoryHandler->moveItem(mSelectedIndex, index);
selectNone();
}
else if (mInventory)
@@ -570,7 +570,7 @@ void ItemContainer::mouseReleased(MouseEvent &event)
{
if (srcContainer != -1)
{ // inventory <--> storage
- Net::getInventoryHandler()->moveItem2(srcContainer,
+ inventoryHandler->moveItem2(srcContainer,
item->getInvIndex(), item->getQuantity(),
dstContainer);
}