You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
RepGraph: Remove actors from global list after callbacks
Avoid callbacks reinserting a removed actor into the global list by looking it up (via FGlobalActorReplicationInfoMap::Get()). [FYI] ryan.gerleve [CL 33844398 by ted percival in ue5-main branch]
This commit is contained in:
@@ -795,8 +795,6 @@ void UReplicationGraph::RemoveNetworkActor(AActor* Actor)
|
||||
RouteRemoveNetworkActorToNodes(FNewReplicatedActorInfo(Actor));
|
||||
}
|
||||
|
||||
GlobalActorReplicationInfoMap.Remove(Actor);
|
||||
|
||||
{
|
||||
QUICK_SCOPE_CYCLE_COUNTER(UReplicationGraph_RemoveNetworkActor_FromConnectionsMap);
|
||||
|
||||
@@ -806,6 +804,8 @@ void UReplicationGraph::RemoveNetworkActor(AActor* Actor)
|
||||
ConnectionManager->RemoveActorFromAllPrevDormantActorLists(Actor);
|
||||
}
|
||||
}
|
||||
|
||||
GlobalActorReplicationInfoMap.Remove(Actor);
|
||||
}
|
||||
|
||||
void UReplicationGraph::RouteRemoveNetworkActorToNodes(const FNewReplicatedActorInfo& ActorInfo)
|
||||
|
||||
Reference in New Issue
Block a user