Skip to content

Commit

Permalink
remove breakpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
jackhumbert committed May 13, 2023
1 parent 5c41d1f commit 8d055bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/red4ext/FlightSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,14 @@ RED4ext::Matrix* __fastcall GetMatrixFromOrientation(RED4ext::Quaternion* q, RED
}

void FlightSystem::RegisterComponent(RED4ext::WeakHandle<FlightComponent> 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<FlightComponent> fc) {
Expand Down

0 comments on commit 8d055bd

Please sign in to comment.