From 0bc81cb39f48fdade13cf964702072cd9a7e324d Mon Sep 17 00:00:00 2001 From: Jan-Fabian Humann Date: Tue, 10 May 2005 15:17:17 +0000 Subject: fixing a bug which occured when ItemManager's constructor calls logger (for example if items.xml is missing) --- src/main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/main.cpp') 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(); -- cgit v1.2.3-70-g09d2