fix a potential crash
This commit is contained in:
@@ -1417,6 +1417,11 @@ void ASGPawn::FImpl::DisableActorPhysics(const AActor* Actor) const
|
||||
|
||||
void ASGPawn::FImpl::EnableActorPhysics(const AActor* Actor) const
|
||||
{
|
||||
if (!IsValid(Actor))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
TArray<USceneComponent*> ActorComponents;
|
||||
Actor->GetComponents(ActorComponents);
|
||||
for (USceneComponent* SceneComponent: ActorComponents)
|
||||
|
||||
Reference in New Issue
Block a user