Fix creatures not being cleared at exit (caused a segfault).

Signed-off-by: otfallen <f.fallen45@gmail.com>
This commit is contained in:
otfallen 2012-09-17 02:28:34 +00:00
parent 054938af90
commit 68d2347ee5
1 changed files with 1 additions and 0 deletions

View File

@ -79,6 +79,7 @@ void OTClient::init(const std::vector<std::string>& args)
void OTClient::terminate() void OTClient::terminate()
{ {
g_creatures.clear();
g_game.terminate(); g_game.terminate();
g_map.terminate(); g_map.terminate();
g_things.terminate(); g_things.terminate();