This Trac instance is not used for development anymore!

We migrated our development workflow to git and Gitea.
To test the future redirection, replace trac by ariadne in the page URL.

Changeset 326 for ps


Ignore:
Timestamp:
05/30/04 04:18:49 (21 years ago)
Author:
markt
Message:

Fixing leaks. More leaks.

Location:
ps/trunk/source/simulation
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ps/trunk/source/simulation/BaseEntity.cpp

    r325 r326  
    1515// automatically use namespace ..
    1616XERCES_CPP_NAMESPACE_USE
     17
     18CBaseEntity::CBaseEntity( const CBaseEntity& copy )
     19{
     20    m_actorObject = copy.m_actorObject;
     21
     22    m_name = copy.m_name;
     23    m_bound_type = copy.m_bound_type;
     24    m_speed = copy.m_speed;
     25    m_turningRadius = copy.m_turningRadius;
     26
     27    m_bound_circle = NULL;
     28    m_bound_box = NULL;
     29    if( copy.m_bound_circle )
     30        m_bound_circle = new CBoundingCircle( 0.0f, 0.0f, copy.m_bound_circle );
     31    if( copy.m_bound_box )
     32        m_bound_box = new CBoundingBox( 0.0f, 0.0f, 0.0f, copy.m_bound_box );
     33}
    1734
    1835CBaseEntity::~CBaseEntity()
  • ps/trunk/source/simulation/BaseEntity.h

    r325 r326  
    2929public:
    3030    CBaseEntity() { m_bound_circle = NULL; m_bound_box = NULL; }
     31    CBaseEntity( const CBaseEntity& copy );
    3132    ~CBaseEntity();
    3233    // Load from XML
Note: See TracChangeset for help on using the changeset viewer.