]> git.tdb.fi Git - libs/game.git/blobdiff - source/game/entity.cpp
Change Owned's constructor to take a pointer to the parent
[libs/game.git] / source / game / entity.cpp
index 8f56f670cb50de28c68876c64f12a9405c6c3278..3c507a312bcb3e73d5d3500c246c0ab14c01a79f 100644 (file)
@@ -13,7 +13,7 @@ Entity::Entity(Handle<Entity> p, TransformTag):
 
 Entity::Entity(Handle<Entity> p, const TransformValues &tv):
        parent(p),
-       transform(*this)
+       transform(this)
 {
        transform->set_values(tv);
 }