and fix a ton more minor performance issues

This commit is contained in:
DarthArgus
2014-10-27 22:39:57 -07:00
parent 14eaf713d0
commit c9c39d5713
97 changed files with 266 additions and 376 deletions
@@ -880,10 +880,8 @@ Object::~Object(void)
deletePropertyList(m_propertyList);
if(m_defaultAppearance)
delete m_defaultAppearance;
if(m_alternateAppearance)
delete m_alternateAppearance;
delete m_defaultAppearance;
delete m_alternateAppearance;
m_appearance = 0;
m_defaultAppearance = 0;
@@ -42,8 +42,7 @@ LayerProperty::~LayerProperty()
void LayerProperty::setLayer(TerrainGenerator::Layer* layer)
{
if (m_layer != NULL)
delete m_layer;
delete m_layer;
m_layer = layer;
}