summaryrefslogtreecommitdiffstats
path: root/source/cRoot.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-06-04 14:08:20 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-06-04 14:08:20 +0200
commitb355bdeccecf727d30e48634df9b5d424db570bc (patch)
tree00489a1317e6ad22a28698f24bd9935160257789 /source/cRoot.cpp
parentFixed MSVC2010 projects for new zlib (diff)
downloadcuberite-b355bdeccecf727d30e48634df9b5d424db570bc.tar
cuberite-b355bdeccecf727d30e48634df9b5d424db570bc.tar.gz
cuberite-b355bdeccecf727d30e48634df9b5d424db570bc.tar.bz2
cuberite-b355bdeccecf727d30e48634df9b5d424db570bc.tar.lz
cuberite-b355bdeccecf727d30e48634df9b5d424db570bc.tar.xz
cuberite-b355bdeccecf727d30e48634df9b5d424db570bc.tar.zst
cuberite-b355bdeccecf727d30e48634df9b5d424db570bc.zip
Diffstat (limited to '')
-rw-r--r--source/cRoot.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/source/cRoot.cpp b/source/cRoot.cpp
index fd3132f28..4220c0f41 100644
--- a/source/cRoot.cpp
+++ b/source/cRoot.cpp
@@ -8,6 +8,7 @@
#include "cFurnaceRecipe.h"
#include "cGroupManager.h"
#include "cRecipeChecker.h"
+#include "CraftingRecipes.h"
#include "cPluginManager.h"
#include "cMonsterConfig.h"
#include "cSleep.h"
@@ -40,7 +41,8 @@ cRoot::cRoot()
: m_Server( 0 )
, m_MonsterConfig( 0 )
, m_GroupManager( 0 )
- , m_RecipeChecker( 0 )
+ , m_RecipeChecker(NULL)
+ , m_CraftingRecipes(NULL)
, m_FurnaceRecipe( 0 )
, m_WebAdmin( 0 )
, m_PluginManager( 0 )
@@ -85,11 +87,11 @@ void cRoot::InputThread(void* a_Params)
void cRoot::Start()
{
- if( m_Log ) delete m_Log, m_Log = 0;
+ delete m_Log;
m_Log = new cMCLogger();
m_bStop = false;
- while(!m_bStop)
+ while (!m_bStop)
{
m_bRestart = false;
@@ -122,6 +124,7 @@ void cRoot::Start()
LOG("Loading settings...");
m_GroupManager = new cGroupManager();
m_RecipeChecker = new cRecipeChecker();
+ m_CraftingRecipes = new cCraftingRecipes;
m_FurnaceRecipe = new cFurnaceRecipe();
LOG("Loading worlds...");
@@ -166,8 +169,9 @@ void cRoot::Start()
LOG("Stopping WebAdmin...");
delete m_WebAdmin; m_WebAdmin = 0;
LOG("Unloading recipes...");
- delete m_FurnaceRecipe; m_FurnaceRecipe = 0;
- delete m_RecipeChecker; m_RecipeChecker = 0;
+ delete m_FurnaceRecipe; m_FurnaceRecipe = NULL;
+ delete m_RecipeChecker; m_RecipeChecker = NULL;
+ delete m_CraftingRecipes; m_CraftingRecipes = NULL;
LOG("Forgetting groups...");
delete m_GroupManager; m_GroupManager = 0;
LOG("Unloading worlds...");