From ca2425f31076fe9bb7ef6443de8b533dbdca7163 Mon Sep 17 00:00:00 2001 From: Lynix Date: Sun, 24 May 2020 16:01:26 +0200 Subject: [PATCH] Sdk/Physics2D: Fix copy of PhysicsComponent2D --- SDK/include/NDK/Components/PhysicsComponent2D.inl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SDK/include/NDK/Components/PhysicsComponent2D.inl b/SDK/include/NDK/Components/PhysicsComponent2D.inl index 6e0b0b10f..53e01480e 100644 --- a/SDK/include/NDK/Components/PhysicsComponent2D.inl +++ b/SDK/include/NDK/Components/PhysicsComponent2D.inl @@ -20,7 +20,8 @@ namespace Ndk * * \param physics PhysicsComponent2D to copy */ - inline PhysicsComponent2D::PhysicsComponent2D(const PhysicsComponent2D& physics) + inline PhysicsComponent2D::PhysicsComponent2D(const PhysicsComponent2D& physics) : + m_nodeSynchronizationEnabled(physics.m_nodeSynchronizationEnabled) { CopyPhysicsState(*physics.GetRigidBody()); }