summaryrefslogtreecommitdiff
path: root/src/gui/equipment.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/equipment.cpp')
-rw-r--r--src/gui/equipment.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/equipment.cpp b/src/gui/equipment.cpp
index 450d985b..7d0ec083 100644
--- a/src/gui/equipment.cpp
+++ b/src/gui/equipment.cpp
@@ -21,6 +21,7 @@
* $Id$
*/
+#include "../main.h"
#include "../graphics.h"
#include "equipment.h"
#include "../resources/resourcemanager.h"
@@ -34,7 +35,7 @@ EquipmentWindow::EquipmentWindow():
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);
for (int i = 0; i < 10; i++ ) {