Skip to content
This repository has been archived by the owner on Aug 29, 2024. It is now read-only.

Revert "UNR-1710 Fixed a crash that may happen if rpcs are sent to tornoff actor" #1162

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1071,12 +1071,6 @@ void USpatialNetDriver::ProcessRPC(AActor* Actor, UObject* SubObject, UFunction*
}
}

if (Actor->bTearOff)
{
UE_LOG(LogSpatialOSNetDriver, Verbose, TEXT("The object %s is torn off; RPC %s will be dropped."), *Actor->GetName(), *Function->GetName());
return;
}

TSet<TWeakObjectPtr<const UObject>> UnresolvedObjects;
RPCPayload Payload = Sender->CreateRPCPayloadFromParams(CallingObject, Function, ReliableRPCIndex, Parameters, UnresolvedObjects);

Expand Down Expand Up @@ -1679,10 +1673,6 @@ USpatialActorChannel* USpatialNetDriver::GetOrCreateSpatialActorChannel(UObject*
TargetActor = Cast<AActor>(TargetObject->GetOuter());
}
check(TargetActor);
if (TargetActor->bTearOff)
{
return nullptr;
}
Channel = CreateSpatialActorChannel(TargetActor, GetSpatialOSNetConnection());
}
return Channel;
Expand Down