]> git.tdb.fi Git - libs/game.git/blobdiff - examples/bassteroids/source/physicalentity.cpp
Change Owned's constructor to take a pointer to the parent
[libs/game.git] / examples / bassteroids / source / physicalentity.cpp
index 85ff0bdea390ad2f31a0a2ab2e1abdf291097680..83b3ee2d4f6a427bcae6eb22174c4d2d1cba9352 100644 (file)
@@ -4,8 +4,8 @@ using namespace Msp;
 
 PhysicalEntity::PhysicalEntity(Game::Handle<Game::Entity> p, const Setup &s, const Game::TransformValues &tv):
        Entity(p, tv),
-       collider(*this, s.collider)
+       collider(this, s.collider)
 {
        if(!s.fixture)
-               body = Game::Owned<RigidBody>(*this, s.body);
+               body = Game::Owned<RigidBody>(this, s.body);
 }