[Orxonox-commit 3828] r8504 - code/branches/bigships/src/orxonox/worldentities/pawns
rgrieder at orxonox.net
rgrieder at orxonox.net
Wed May 18 15:19:48 CEST 2011
Author: rgrieder
Date: 2011-05-18 15:19:47 +0200 (Wed, 18 May 2011)
New Revision: 8504
Modified:
code/branches/bigships/src/orxonox/worldentities/pawns/SpaceShip.cc
Log:
Destructor code should be enclosed in this->isInitialized().
Modified: code/branches/bigships/src/orxonox/worldentities/pawns/SpaceShip.cc
===================================================================
--- code/branches/bigships/src/orxonox/worldentities/pawns/SpaceShip.cc 2011-05-18 10:54:25 UTC (rev 8503)
+++ code/branches/bigships/src/orxonox/worldentities/pawns/SpaceShip.cc 2011-05-18 13:19:47 UTC (rev 8504)
@@ -84,10 +84,12 @@
SpaceShip::~SpaceShip()
{
if (this->isInitialized())
+ {
this->removeAllEngines();
- if (this->boostBlur_)
- this->boostBlur_->destroy();
+ if (this->boostBlur_)
+ this->boostBlur_->destroy();
+ }
}
void SpaceShip::XMLPort(Element& xmlelement, XMLPort::Mode mode)
More information about the Orxonox-commit
mailing list