mirror of
https://github.com/SWG-Source/src.git
synced 2026-09-28 15:12:53 -04:00
and fix a ton more minor performance issues
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user