From a40594752d04c71097b1af57e4abc31bb2282abb Mon Sep 17 00:00:00 2001 From: otfallen Date: Mon, 17 Sep 2012 02:15:46 +0000 Subject: [PATCH] Fix segfault on exit cause by creatures not being cleared. --- src/otclient/otclient.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/otclient/otclient.cpp b/src/otclient/otclient.cpp index 060b2580..9b627ec5 100644 --- a/src/otclient/otclient.cpp +++ b/src/otclient/otclient.cpp @@ -79,6 +79,7 @@ void OTClient::init(const std::vector& args) void OTClient::terminate() { + g_creatures.clear(); g_game.terminate(); g_map.terminate(); g_things.terminate();