-
Notifications
You must be signed in to change notification settings - Fork 463
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Unreal crashing when deleting an actor with a JSBMovement component. #1212
Conversation
Thanks. I can confirm that in UE5.4 this is broken. void FSplineComponentVisualizer::DrawVisualization(const UActorComponent* Componen,.....
{
if (const USplineComponent* SplineComp = Cast<const USplineComponent>(Component))
{
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The if (!movementComponent)
is good. The other checks can be removed.
...ynamicsModel/Source/JSBSimFlightDynamicsModelEditor/Private/JSBSimMovementCompVisualizer.cpp
Outdated
Show resolved
Hide resolved
...ynamicsModel/Source/JSBSimFlightDynamicsModelEditor/Private/JSBSimMovementCompVisualizer.cpp
Outdated
Show resolved
Hide resolved
...ynamicsModel/Source/JSBSimFlightDynamicsModelEditor/Private/JSBSimMovementCompVisualizer.cpp
Outdated
Show resolved
Hide resolved
...ynamicsModel/Source/JSBSimFlightDynamicsModelEditor/Private/JSBSimMovementCompVisualizer.cpp
Outdated
Show resolved
Hide resolved
Add null check to JSBSimMovementCompVisualizer.cpp
cafde9a
to
30cfc80
Compare
Thanks for the very quick review. I agree with your comment and fixed the code. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1212 +/- ##
=======================================
Coverage 24.96% 24.96%
=======================================
Files 170 170
Lines 19281 19281
=======================================
Hits 4814 4814
Misses 14467 14467 ☔ View full report in Codecov by Sentry. |
Merged. |
Below is the crash log that occurred.