diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2007-11-15 23:44:01 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2007-11-15 23:44:01 +0000 |
commit | 0e925e97554aae573e895afa4e3d8450f01df342 (patch) | |
tree | bbc30319410aecb9fec7c005e667cd7fb628bb17 /src/net/inventoryhandler.cpp | |
parent | ffa0fae492d954c0aed35a0acbd7b856778d7328 (diff) | |
download | mana-client-0e925e97554aae573e895afa4e3d8450f01df342.tar.gz mana-client-0e925e97554aae573e895afa4e3d8450f01df342.tar.bz2 mana-client-0e925e97554aae573e895afa4e3d8450f01df342.tar.xz mana-client-0e925e97554aae573e895afa4e3d8450f01df342.zip |
Moved item icon from ItemInfo class to the Item class, so that it can be loaded
on demand. Results in faster startup time and reduced memory usage.
Diffstat (limited to 'src/net/inventoryhandler.cpp')
-rw-r--r-- | src/net/inventoryhandler.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/net/inventoryhandler.cpp b/src/net/inventoryhandler.cpp index de74e8f5..6fdb827d 100644 --- a/src/net/inventoryhandler.cpp +++ b/src/net/inventoryhandler.cpp @@ -73,9 +73,7 @@ void InventoryHandler::handleMessage(MessageIn &msg) else if (slot >= 32 && slot < 32 + INVENTORY_SIZE) { int amount = id ? msg.readByte() : 0; - Item *it = player_node->getInvItem(slot - 32); - it->setId(id); - it->setQuantity(amount); + player_node->setInvItem(slot - 32, id, amount); } }; itemShortcut->load(); |