From 81d8168bb5796ccb1704bcce9f5327c35e55d281 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Sat, 17 Jul 2010 23:10:05 -0600 Subject: Move more from LocalPlayer to PlayerInfo Also cleanup PlayerInfo a bit. Reviewed-by: Chuck Miller --- src/itemshortcut.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/itemshortcut.cpp') diff --git a/src/itemshortcut.cpp b/src/itemshortcut.cpp index 88b04347..064fdbc6 100644 --- a/src/itemshortcut.cpp +++ b/src/itemshortcut.cpp @@ -23,7 +23,7 @@ #include "inventory.h" #include "item.h" #include "itemshortcut.h" -#include "localplayer.h" +#include "playerinfo.h" #include "net/inventoryhandler.h" #include "net/net.h" @@ -66,7 +66,7 @@ void ItemShortcut::useItem(int index) { if (mItems[index]) { - Item *item = player_node->getInventory()->findItem(mItems[index]); + Item *item = PlayerInfo::getInventory()->findItem(mItems[index]); if (item && item->getQuantity()) { if (item->isEquipment()) -- cgit v1.2.3-70-g09d2