summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-03-11 13:21:37 -0600
committerIra Rice <irarice@gmail.com>2009-03-11 14:59:53 -0600
commit9935a143cc9c2cd672889965b5db647921cf0210 (patch)
treefef1c120a35b8468a874867b7ca20fd3d659d727 /src/main.cpp
parent2a6b52f6467bfb4babb2a33205752f58554b651b (diff)
downloadmana-9935a143cc9c2cd672889965b5db647921cf0210.tar.gz
mana-9935a143cc9c2cd672889965b5db647921cf0210.tar.bz2
mana-9935a143cc9c2cd672889965b5db647921cf0210.tar.xz
mana-9935a143cc9c2cd672889965b5db647921cf0210.zip
Fix segfault when being count reaches 0 too often
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index a7032fb1..ec075a4c 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -479,6 +479,8 @@ void exit_engine()
// Shutdown sound
sound.close();
+ Being::cleanup();
+
// Unload XML databases
ColorDB::unload();
EmoteDB::unload();
@@ -939,6 +941,7 @@ int main(int argc, char *argv[])
MonsterDB::load();
NPCDB::load();
EmoteDB::load();
+ Being::load(); // Hairstyles and emotions
state = CHAR_CONNECT_STATE;
break;