From eb6a3dfd09f88414ba1bae9ffe1cf4440db7565d Mon Sep 17 00:00:00 2001 From: Philipp Sehmisch Date: Thu, 23 Nov 2006 22:51:42 +0000 Subject: Refectored the Itemmanager class to an ItemDB namespace. --- src/gui/buy.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/buy.cpp') diff --git a/src/gui/buy.cpp b/src/gui/buy.cpp index 0bf4c56d..91488595 100644 --- a/src/gui/buy.cpp +++ b/src/gui/buy.cpp @@ -32,7 +32,7 @@ #include "../npc.h" -#include "../resources/itemmanager.h" +#include "../resources/itemdb.h" #include "../net/messageout.h" #include "../net/protocol.h" @@ -267,7 +267,7 @@ void BuyDialog::selectionChanged(const SelectionEvent &event) if (selectedItem > -1) { const ItemInfo &info = - itemDb->getItemInfo(mShopItems->at(selectedItem).id); + ItemDB::get(mShopItems->at(selectedItem).id); mItemDescLabel->setCaption("Description: " + info.getDescription()); mItemEffectLabel->setCaption("Effect: " + info.getEffect()); -- cgit v1.2.3-70-g09d2