[Orxonox-commit 1434] r6152 - code/branches/presentation2/src/orxonox/weaponsystem

dafrick at orxonox.net dafrick at orxonox.net
Wed Nov 25 17:26:19 CET 2009


Author: dafrick
Date: 2009-11-25 17:26:19 +0100 (Wed, 25 Nov 2009)
New Revision: 6152

Modified:
   code/branches/presentation2/src/orxonox/weaponsystem/WeaponMode.cc
Log:
Apparently you can introduce a segfault just by setting some default values...

Modified: code/branches/presentation2/src/orxonox/weaponsystem/WeaponMode.cc
===================================================================
--- code/branches/presentation2/src/orxonox/weaponsystem/WeaponMode.cc	2009-11-25 16:09:46 UTC (rev 6151)
+++ code/branches/presentation2/src/orxonox/weaponsystem/WeaponMode.cc	2009-11-25 16:26:19 UTC (rev 6152)
@@ -65,7 +65,7 @@
         
         this->muzzleOffset_ = Vector3::ZERO;
         this->muzzlePosition_ = Vector3::ZERO;
-        this->muzzleOrientation_ = Quaternion::ZERO;
+        this->muzzleOrientation_ = Quaternion::IDENTITY;
     }
 
     WeaponMode::~WeaponMode()




More information about the Orxonox-commit mailing list