summaryrefslogtreecommitdiffstats
path: root/source/Root.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/Root.cpp')
-rw-r--r--source/Root.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/Root.cpp b/source/Root.cpp
index 1ec7f0e59..72003ca72 100644
--- a/source/Root.cpp
+++ b/source/Root.cpp
@@ -189,8 +189,6 @@ void cRoot::Start(void)
StopWorlds();
LOG("Stopping authenticator...");
m_Authenticator.Stop();
- LOG("Stopping plugin manager...");
- delete m_PluginManager; m_PluginManager = 0; // This should be first
#ifdef USE_SQUIRREL
@@ -208,6 +206,9 @@ void cRoot::Start(void)
LOG("Unloading worlds...");
UnloadWorlds();
+ LOG("Stopping plugin manager...");
+ delete m_PluginManager; m_PluginManager = NULL;
+
cItemHandler::Deinit();
cBlockHandler::Deinit();