diff options
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 0e0fad2f..5379086c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -72,6 +72,7 @@ #include "net/network.h" #include "resources/image.h" +#include "resources/itemdb.h" #include "resources/resourcemanager.h" #include "resources/spriteset.h" @@ -303,6 +304,9 @@ void init_engine(const Options &options) errorMessage = err; logger->log("Warning: %s", err); } + + // Initialize item database + ItemDB::load(); } /** Clear the engine */ @@ -327,6 +331,8 @@ void exit_engine() ResourceManager::deleteInstance(); delete logger; + + ItemDB::unload(); } void printHelp() |