summaryrefslogtreecommitdiff
path: root/src/gui/popupmenu.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/gui/popupmenu.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/gui/popupmenu.cpp')
-rw-r--r--src/gui/popupmenu.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/popupmenu.cpp b/src/gui/popupmenu.cpp
index ab81f7d0..c2959e1d 100644
--- a/src/gui/popupmenu.cpp
+++ b/src/gui/popupmenu.cpp
@@ -40,7 +40,7 @@
#include "../npc.h"
#include "../resources/iteminfo.h"
-#include "../resources/itemmanager.h"
+#include "../resources/itemdb.h"
extern std::string tradePartnerName;
@@ -106,7 +106,7 @@ void PopupMenu::showPopup(int x, int y, FloorItem *floorItem)
mBrowserBox->clearRows();
// Floor item can be picked up (single option, candidate for removal)
- std::string name = itemDb->getItemInfo(mFloorItem->getItemId()).getName();
+ std::string name = ItemDB::get(mFloorItem->getItemId()).getName();
mBrowserBox->addRow("@@pickup|Pick Up " + name + "@@");
//browserBox->addRow("@@look|Look To@@");