From 12adeedf16fecb140405ad99f8943fd9c7be8331 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 28 Sep 2008 10:35:30 +0000 Subject: zone unload on module disconnect --- src/core/gameinterface.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/gameinterface.cc b/src/core/gameinterface.cc index 17623f2..1ea3b55 100644 --- a/src/core/gameinterface.cc +++ b/src/core/gameinterface.cc @@ -81,7 +81,9 @@ void GameInterface::clear() // remove all zones for (Zone::Registry::iterator it = Zone::registry().begin(); it != Zone::registry().end(); it++) { - delete (*it).second; + Zone *zone = (*it).second; + application()->notify_zoneclear(zone); + delete zone; } Zone::registry().clear(); -- cgit v1.2.3