[Orxonox-commit 5257] r9920 - code/branches/presentationHS13/src/modules/invader

jo at orxonox.net jo at orxonox.net
Tue Dec 17 23:34:01 CET 2013


Author: jo
Date: 2013-12-17 23:34:01 +0100 (Tue, 17 Dec 2013)
New Revision: 9920

Modified:
   code/branches/presentationHS13/src/modules/invader/InvaderShip.cc
Log:
hopefully fixed a crash

Modified: code/branches/presentationHS13/src/modules/invader/InvaderShip.cc
===================================================================
--- code/branches/presentationHS13/src/modules/invader/InvaderShip.cc	2013-12-16 15:05:33 UTC (rev 9919)
+++ code/branches/presentationHS13/src/modules/invader/InvaderShip.cc	2013-12-17 22:34:01 UTC (rev 9920)
@@ -90,7 +90,7 @@
             ControllableEntity::fire(0);
 
         // Camera
-        Camera* camera = this->getCamera();
+        WeakPtr<Camera> camera = this->getCamera();
         if (camera != NULL)
         {
             camera->setPosition(Vector3(-pos.z, -posforeward, 0));




More information about the Orxonox-commit mailing list