From 8d055bd42b02fd143178e1c26161f302fa37bb52 Mon Sep 17 00:00:00 2001 From: Jack Humbert Date: Sat, 13 May 2023 12:36:57 -0400 Subject: [PATCH] remove breakpoint --- src/red4ext/FlightSystem.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/red4ext/FlightSystem.cpp b/src/red4ext/FlightSystem.cpp index 9a1ba8d1..5118588e 100644 --- a/src/red4ext/FlightSystem.cpp +++ b/src/red4ext/FlightSystem.cpp @@ -82,14 +82,14 @@ RED4ext::Matrix* __fastcall GetMatrixFromOrientation(RED4ext::Quaternion* q, RED } void FlightSystem::RegisterComponent(RED4ext::WeakHandle fc) { - if (fc.instance && !fc.Expired()) { + if (fc.instance && fc.refCount && !fc.Expired()) { this->flightComponentsMutex.Lock(); fc.refCount->IncWeakRef(); this->flightComponents.EmplaceBack(fc); this->flightComponentsMutex.Unlock(); } //spdlog::info("[FlightSystem] Component added"); - __debugbreak(); + // __debugbreak(); } void FlightSystem::UnregisterComponent(RED4ext::WeakHandle fc) {