]> git.tdb.fi Git - libs/game.git/blobdiff - examples/bassteroids/source/asteroid.cpp
Change Owned's constructor to take a pointer to the parent
[libs/game.git] / examples / bassteroids / source / asteroid.cpp
index 7e5bcd5aee5df35377a865f5add3c908d69628a2..01b760539f070da0dcad1e9f8f0103962d44a6c2 100644 (file)
@@ -3,7 +3,7 @@
 using namespace Msp;
 
 Asteroid::Asteroid(Game::Handle<Entity> p, const AsteroidSetup &s):
-       PhysicalEntity(p, s.physical),
+       Hittable(p, s.hittable, s.physical),
        setup(s),
-       mesh(*this, setup.mesh)
+       mesh(this, setup.mesh)
 { }