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

UNR-1757 Skip actor itself when iterating ReplicationMap when creating entity #1179

Merged
merged 1 commit into from
Jul 18, 2019
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 @@ -262,6 +262,12 @@ Worker_RequestId USpatialSender::CreateEntity(USpatialActorChannel* Channel)
if (UObject* Subobject = RepSubobject.Value()->GetWeakObjectPtr().Get())
#endif
{
if (Subobject == Actor)
{
// Actor's replicator is also contained in ReplicationMap.
continue;
}

// If this object is not in the PackageMap, it has been dynamically created.
if (!PackageMap->GetUnrealObjectRefFromObject(Subobject).IsValid())
{
Expand Down