summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2010-03-25 16:03:13 -0600
committerJared Adams <jaxad0127@gmail.com>2010-03-25 16:56:12 -0600
commit8745368108563d7c32820b989c3ea794ccb834f9 (patch)
treea69554b2e5659b25f50797cc6ab4cc95b2b6f84e /src/localplayer.cpp
parentac18a72c9972faf6dbd68abf3c883b2d444396c8 (diff)
downloadmana-8745368108563d7c32820b989c3ea794ccb834f9.tar.gz
mana-8745368108563d7c32820b989c3ea794ccb834f9.tar.bz2
mana-8745368108563d7c32820b989c3ea794ccb834f9.tar.xz
mana-8745368108563d7c32820b989c3ea794ccb834f9.zip
Remove the type boolean from InventoryWindow
This moves inventory/storage type into the Inventory class, having size default to a call to the netcode to get the sive for the given type. Reviewed-by: Chuck Miller
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r--src/localplayer.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index 6c5f257d..1a110810 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -98,8 +98,7 @@ LocalPlayer::LocalPlayer(int id, int job):
mLastAction(-1),
mWalkingDir(0),
mPathSetByMouse(false),
- mInventory(new Inventory(Net::getInventoryHandler()
- ->getSize(Net::InventoryHandler::INVENTORY))),
+ mInventory(new Inventory(Inventory::INVENTORY)),
mLocalWalkTime(-1),
mMessageTime(0)
{