summaryrefslogtreecommitdiff
path: root/src/net/ea/inventoryhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-29 21:38:18 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-30 16:37:01 +0300
commit03763e4b290b80bc5606568b168f8605d7aa1631 (patch)
tree87f517d55a57b10da3aad9ded5755908b20b9ff3 /src/net/ea/inventoryhandler.cpp
parenta175038656212737bb9b447dfb3b9a85f52d91a2 (diff)
downloadManaVerse-03763e4b290b80bc5606568b168f8605d7aa1631.tar.gz
ManaVerse-03763e4b290b80bc5606568b168f8605d7aa1631.tar.bz2
ManaVerse-03763e4b290b80bc5606568b168f8605d7aa1631.tar.xz
ManaVerse-03763e4b290b80bc5606568b168f8605d7aa1631.zip
Remove additional parameters from processPlayerInventory function.
Diffstat (limited to 'src/net/ea/inventoryhandler.cpp')
-rw-r--r--src/net/ea/inventoryhandler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/ea/inventoryhandler.cpp b/src/net/ea/inventoryhandler.cpp
index 432f4eb5c..c73dc5757 100644
--- a/src/net/ea/inventoryhandler.cpp
+++ b/src/net/ea/inventoryhandler.cpp
@@ -173,10 +173,10 @@ int InventoryHandler::getSlot(const int eAthenaSlot)
return static_cast<int>(EQUIP_POINTS[position]);
}
-void InventoryHandler::processPlayerInventory(Net::MessageIn &msg,
- const bool playerInvintory)
+void InventoryHandler::processPlayerInventory(Net::MessageIn &msg)
{
BLOCK_START("InventoryHandler::processPlayerInventory")
+ const bool playerInvintory = msg.getId() == SMSG_PLAYER_INVENTORY;
Inventory *const inventory = localPlayer
? PlayerInfo::getInventory() : nullptr;
if (playerInvintory)