From ac4904867941dbe7d141010768c66c71542590ae Mon Sep 17 00:00:00 2001 From: Lynix Date: Wed, 3 Apr 2019 22:16:11 +0200 Subject: [PATCH] Fix crash when debug drawing Collider2D with no CollisionComponent2D --- SDK/src/NDK/Systems/DebugSystem.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/SDK/src/NDK/Systems/DebugSystem.cpp b/SDK/src/NDK/Systems/DebugSystem.cpp index f2175e559..d8c61b9bc 100644 --- a/SDK/src/NDK/Systems/DebugSystem.cpp +++ b/SDK/src/NDK/Systems/DebugSystem.cpp @@ -231,9 +231,6 @@ namespace Ndk { case DebugDraw::Collider2D: { - const Nz::Boxf& obb = entityGfx.GetAABB(); - CollisionComponent2D& entityCollision2D = entity->GetComponent(); - Nz::Vector3f offset; Nz::InstancedRenderableRef renderable = GenerateCollision2DMesh(entity, &offset); if (renderable)