summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index ce45b460..5a1b1318 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -74,7 +74,7 @@ Music *bgm;
Configuration config; /**< Xml file configuration reader */
Logger *logger; /**< Log object */
-ItemManager itemDb; /**< Item database object */
+ItemManager *itemDb; /**< Item database object */
/**
* Listener used for responding to map start error dialog.
@@ -258,6 +258,9 @@ void init_engine()
//vfmt Pixel format of the video device
+ // Initialize item manager
+ itemDb = new ItemManager();
+
// Create the graphics context
graphics = new Graphics();