Changeset 1559 for code/trunk/src/orxonox/objects/ParticleSpawner.cc
- Timestamp:
- Jun 7, 2008, 2:34:54 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/objects/ParticleSpawner.cc
r1553 r1559 38 38 CreateFactory(ParticleSpawner); 39 39 40 ParticleSpawner::ParticleSpawner() : particle_(0)40 ParticleSpawner::ParticleSpawner() 41 41 { 42 42 RegisterObject(ParticleSpawner); 43 43 } 44 44 45 ParticleSpawner::ParticleSpawner(const std::string& templateName, float lifetime, float delay, const Vector3& direction) : particle_(0)45 ParticleSpawner::ParticleSpawner(const std::string& templateName, float lifetime, float delay, const Vector3& direction) 46 46 { 47 47 RegisterObject(ParticleSpawner); … … 61 61 ParticleSpawner::~ParticleSpawner() 62 62 { 63 if (this-> particle_)63 if (this->isInitialized()) 64 64 { 65 65 this->particle_->detachFromSceneNode();
Note: See TracChangeset
for help on using the changeset viewer.