summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2010-04-25 19:17:03 -0600
committerJared Adams <jaxad0127@gmail.com>2010-04-25 23:11:29 -0600
commitbba1a7e5a92f0df2ae879f0ea0cd064a25c915ab (patch)
treebfd9b23ad26a3e6d9f6b3cbf1e3de68b4875ff12 /src/client.cpp
parent5e75167f64473d645e40d7f6eb58eb1ef8f6cdea (diff)
downloadmana-bba1a7e5a92f0df2ae879f0ea0cd064a25c915ab.tar.gz
mana-bba1a7e5a92f0df2ae879f0ea0cd064a25c915ab.tar.bz2
mana-bba1a7e5a92f0df2ae879f0ea0cd064a25c915ab.tar.xz
mana-bba1a7e5a92f0df2ae879f0ea0cd064a25c915ab.zip
Fix resource errors when chaning servers
Reviewed-by: Freeyorp
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 44df362e..8d916add 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -435,14 +435,6 @@ Client::~Client()
// Shutdown sound
sound.close();
- // Unload XML databases
- ColorDB::unload();
- EmoteDB::unload();
- ItemDB::unload();
- MonsterDB::unload();
- NPCDB::unload();
- StatusEffect::unload();
-
ResourceManager::deleteInstance();
SDL_FreeSurface(mIcon);
@@ -583,6 +575,14 @@ int Client::exec()
{
delete game;
game = 0;
+
+ // Unload XML databases
+ ColorDB::unload();
+ EmoteDB::unload();
+ ItemDB::unload();
+ MonsterDB::unload();
+ NPCDB::unload();
+ StatusEffect::unload();
}
mOldState = mState;