Sdk/CollisionComponent2D: C++14 cleanup

This commit is contained in:
Lynix 2017-11-28 23:21:32 +01:00
parent 71ee30d570
commit 9eaf995b21
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ namespace Ndk
NazaraAssert(entityWorld->HasSystem<PhysicsSystem2D>(), "World must have a physics system");
Nz::PhysWorld2D& physWorld = entityWorld->GetSystem<PhysicsSystem2D>().GetWorld();
m_staticBody.reset(new Nz::RigidBody2D(&physWorld, 0.f, m_geom));
m_staticBody = std::make_unique<Nz::RigidBody2D>(&physWorld, 0.f, m_geom);
Nz::Matrix4f matrix;
if (m_entity->HasComponent<NodeComponent>())