From 8745368108563d7c32820b989c3ea794ccb834f9 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Thu, 25 Mar 2010 16:03:13 -0600 Subject: 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 --- src/localplayer.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/localplayer.cpp') 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) { -- cgit v1.2.3-70-g09d2