From bcfa72e0341c911bf6c020765d1ffe16ccfb72e1 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Sun, 26 Nov 2006 15:49:11 +0000 Subject: ItemDB needs to be unloaded before deleting the resource manager instance, since ItemInfo refers to an Image. --- src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/main.cpp b/src/main.cpp index 70bc469b..0faf5c12 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -331,12 +331,12 @@ void exit_engine() // Shutdown sound sound.close(); - ResourceManager::deleteInstance(); - delete logger; - // Unload XML databases EquipmentDB::unload(); ItemDB::unload(); + + ResourceManager::deleteInstance(); + delete logger; } void printHelp() -- cgit v1.2.3-70-g09d2