]> git.tdb.fi Git - libs/game.git/blobdiff - examples/bassteroids/source/playfield.cpp
Change Owned's constructor to take a pointer to the parent
[libs/game.git] / examples / bassteroids / source / playfield.cpp
index 8c6cc6c14009daa9055b36d53b3fd001b78beb17..49eca3bd0f771250677ef173b03f19cc1e15b62e 100644 (file)
@@ -15,5 +15,5 @@ Playfield::Playfield(Game::Handle<Game::Entity> p, const Setup &s):
 
 Playfield::Border::Border(Playfield &f, LinAl::Vector<float, 2> p, LinAl::Vector<float, 2> s):
        setup{ .fixture=true, .body={}, .collider={ .type=ColliderType::BOX, .size=s }},
-       entity(f, setup, compose(p, 0.0f))
+       entity(&f, setup, compose(p, 0.0f))
 { }