summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2006-11-26 15:49:11 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2006-11-26 15:49:11 +0000
commitbcfa72e0341c911bf6c020765d1ffe16ccfb72e1 (patch)
tree431c3904fded3e1f38aaf928d323e15b3e7c5058 /src/main.cpp
parent7f819e46b584145e2cf2ea742ced9fab0ffc233e (diff)
downloadmana-bcfa72e0341c911bf6c020765d1ffe16ccfb72e1.tar.gz
mana-bcfa72e0341c911bf6c020765d1ffe16ccfb72e1.tar.bz2
mana-bcfa72e0341c911bf6c020765d1ffe16ccfb72e1.tar.xz
mana-bcfa72e0341c911bf6c020765d1ffe16ccfb72e1.zip
ItemDB needs to be unloaded before deleting the resource manager instance,
since ItemInfo refers to an Image.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp6
1 files changed, 3 insertions, 3 deletions
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()