Skip to content

Commit

Permalink
actually pass ValidatedTags to notify event and replication
Browse files Browse the repository at this point in the history
Issue found by Mahoukyou
  • Loading branch information
MothDoctor committed Oct 31, 2021
1 parent aef5bed commit 91ee21d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Source/Flow/Private/FlowComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ void UFlowComponent::BulkNotifyGraph(const FGameplayTagContainer NotifyTags, con
{
// save recently notify, this allow for the retroactive check in nodes
// if retroactive check wouldn't be performed, this is only used by the network replication
RecentlySentNotifyTags = NotifyTags;
RecentlySentNotifyTags = ValidatedTags;

OnRep_SentNotifyTags();
}
Expand Down Expand Up @@ -265,14 +265,14 @@ void UFlowComponent::NotifyFromGraph(const FGameplayTagContainer& NotifyTags, co

if (ValidatedTags.Num() > 0)
{
for (const FGameplayTag& NotifyTag : NotifyTags)
for (const FGameplayTag& ValidatedTag : ValidatedTags)
{
ReceiveNotify.Broadcast(nullptr, NotifyTag);
ReceiveNotify.Broadcast(nullptr, ValidatedTag);
}

if (IsNetMode(NM_DedicatedServer) || IsNetMode(NM_ListenServer))
{
NotifyTagsFromGraph = NotifyTags;
NotifyTagsFromGraph = ValidatedTags;
}
}
}
Expand Down

0 comments on commit 91ee21d

Please sign in to comment.