summaryrefslogtreecommitdiff
path: root/src/net/inventoryhandler.cpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2006-11-23 22:51:42 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2006-11-23 22:51:42 +0000
commiteb6a3dfd09f88414ba1bae9ffe1cf4440db7565d (patch)
tree41015edc17e3c308d04e11c062a31f6bde028ea0 /src/net/inventoryhandler.cpp
parent08de4c7bab768be5a583150bfabd5d6d54a29c7a (diff)
downloadmana-eb6a3dfd09f88414ba1bae9ffe1cf4440db7565d.tar.gz
mana-eb6a3dfd09f88414ba1bae9ffe1cf4440db7565d.tar.bz2
mana-eb6a3dfd09f88414ba1bae9ffe1cf4440db7565d.tar.xz
mana-eb6a3dfd09f88414ba1bae9ffe1cf4440db7565d.zip
Refectored the Itemmanager class to an ItemDB namespace.
Diffstat (limited to 'src/net/inventoryhandler.cpp')
-rw-r--r--src/net/inventoryhandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/inventoryhandler.cpp b/src/net/inventoryhandler.cpp
index afe653eb..67038c99 100644
--- a/src/net/inventoryhandler.cpp
+++ b/src/net/inventoryhandler.cpp
@@ -95,7 +95,7 @@ void InventoryHandler::handleMessage(MessageIn *msg)
if (msg->readInt8()> 0) {
chatWindow->chatLog("Unable to pick up item", BY_SERVER);
} else {
- const ItemInfo &itemInfo = itemDb->getItemInfo(itemId);
+ const ItemInfo &itemInfo = ItemDB::get(itemId);
chatWindow->chatLog("You picked up a " +
itemInfo.getName(), BY_SERVER);
player_node->addInvItem(index, itemId, amount, equipType != 0);