summaryrefslogtreecommitdiff
path: root/src/gui/itemcontainer.cpp
diff options
context:
space:
mode:
authorYohann Ferreira <bertram@cegetel.net>2005-03-24 20:59:33 +0000
committerYohann Ferreira <bertram@cegetel.net>2005-03-24 20:59:33 +0000
commit91c154d9ed3fa307ea5566f62b003c38cdacf2ad (patch)
treef2f334d090ff115ae0c3573455da42e1dca09c47 /src/gui/itemcontainer.cpp
parentb58164b2ba3ea6a3f6a87db38038f69d961fda11 (diff)
downloadmana-client-91c154d9ed3fa307ea5566f62b003c38cdacf2ad.tar.gz
mana-client-91c154d9ed3fa307ea5566f62b003c38cdacf2ad.tar.bz2
mana-client-91c154d9ed3fa307ea5566f62b003c38cdacf2ad.tar.xz
mana-client-91c154d9ed3fa307ea5566f62b003c38cdacf2ad.zip
logger...
Diffstat (limited to 'src/gui/itemcontainer.cpp')
-rw-r--r--src/gui/itemcontainer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/itemcontainer.cpp b/src/gui/itemcontainer.cpp
index 0debd3b3..1b000127 100644
--- a/src/gui/itemcontainer.cpp
+++ b/src/gui/itemcontainer.cpp
@@ -21,6 +21,7 @@
* $Id$
*/
+#include "../main.h"
#include "itemcontainer.h"
#include "../graphics.h"
#include "../resources/resourcemanager.h"
@@ -30,7 +31,7 @@ ItemContainer::ItemContainer()
{
ResourceManager *resman = ResourceManager::getInstance();
Image *itemImg = resman->getImage("core/graphics/sprites/items.png", IMG_ALPHA);
- if (!itemImg) error("Unable to load items.png");
+ if (!itemImg) logger.error("Unable to load items.png");
itemset = new Spriteset(itemImg, 20, 20);
selectedItem = -1; /**< No item selected */