Fixed mis-named paremeter.

Former-commit-id: f31f633ea81682c6b30db3f375bded7c1377f4ba
This commit is contained in:
morden
2017-07-01 14:32:51 -04:00
parent bba43a115c
commit ac12e12788
3 changed files with 7 additions and 7 deletions

View File

@@ -66,7 +66,7 @@ public:
// After a session invite has been accepted by the local player this event is triggered, call JoinSession on the session result to join it // After a session invite has been accepted by the local player this event is triggered, call JoinSession on the session result to join it
UFUNCTION(BlueprintImplementableEvent, Category = "AdvancedFriends") UFUNCTION(BlueprintImplementableEvent, Category = "AdvancedFriends")
void OnSessionInviteAccepted(int32 LocalPlayerNum, FBPUniqueNetId PersonInviting, const FBlueprintSessionResult& SessionToJoin); void OnSessionInviteAccepted(int32 LocalPlayerNum, FBPUniqueNetId PersonInvited, const FBlueprintSessionResult& SessionToJoin);
// After a voice status has changed this event is triggered if the bEnableTalkingStatusDelegate property is true // After a voice status has changed this event is triggered if the bEnableTalkingStatusDelegate property is true

View File

@@ -34,7 +34,7 @@ public:
// Called when the designated LocalUser has accepted a session invite, use JoinSession on result to connect // Called when the designated LocalUser has accepted a session invite, use JoinSession on result to connect
UFUNCTION(BlueprintImplementableEvent, meta = (DisplayName = "OnSessionInviteAccepted")) UFUNCTION(BlueprintImplementableEvent, meta = (DisplayName = "OnSessionInviteAccepted"))
void OnSessionInviteAccepted(FBPUniqueNetId PersonInviting, const FBlueprintSessionResult& SearchResult); void OnSessionInviteAccepted(FBPUniqueNetId PersonInvited, const FBlueprintSessionResult& SearchResult);
// Called when the designated LocalUser has accepted a session invite, use JoinSession on result to connect // Called when the designated LocalUser has accepted a session invite, use JoinSession on result to connect
UFUNCTION(BlueprintImplementableEvent, meta = (DisplayName = "OnPlayerVoiceStateChanged")) UFUNCTION(BlueprintImplementableEvent, meta = (DisplayName = "OnPlayerVoiceStateChanged"))

View File

@@ -292,7 +292,7 @@ void UAdvancedFriendsGameInstance::OnSessionInviteReceivedMaster(const FUniqueNe
} }
} }
void UAdvancedFriendsGameInstance::OnSessionInviteAcceptedMaster(const bool bWasSuccessful, int32 LocalPlayer, TSharedPtr<const FUniqueNetId> PersonInviting, const FOnlineSessionSearchResult& SessionToJoin) void UAdvancedFriendsGameInstance::OnSessionInviteAcceptedMaster(const bool bWasSuccessful, int32 LocalPlayer, TSharedPtr<const FUniqueNetId> PersonInvited, const FOnlineSessionSearchResult& SessionToJoin)
{ {
if (bWasSuccessful) if (bWasSuccessful)
{ {
@@ -302,10 +302,10 @@ void UAdvancedFriendsGameInstance::OnSessionInviteAcceptedMaster(const bool bWas
FBlueprintSessionResult BluePrintResult; FBlueprintSessionResult BluePrintResult;
BluePrintResult.OnlineResult = SessionToJoin; BluePrintResult.OnlineResult = SessionToJoin;
FBPUniqueNetId PInviting; FBPUniqueNetId PInvited;
PInviting.SetUniqueNetId(PersonInviting); PInvited.SetUniqueNetId(PersonInvited);
OnSessionInviteAccepted(LocalPlayer,PInviting, BluePrintResult); OnSessionInviteAccepted(LocalPlayer,PInvited, BluePrintResult);
APlayerController* Player = UGameplayStatics::GetPlayerController(GetWorld(), LocalPlayer); APlayerController* Player = UGameplayStatics::GetPlayerController(GetWorld(), LocalPlayer);
@@ -316,7 +316,7 @@ void UAdvancedFriendsGameInstance::OnSessionInviteAcceptedMaster(const bool bWas
//Run the Event specific to the actor, if the actor has the interface, otherwise ignore //Run the Event specific to the actor, if the actor has the interface, otherwise ignore
if (Player->GetClass()->ImplementsInterface(UAdvancedFriendsInterface::StaticClass())) if (Player->GetClass()->ImplementsInterface(UAdvancedFriendsInterface::StaticClass()))
{ {
IAdvancedFriendsInterface::Execute_OnSessionInviteAccepted(Player,PInviting, BluePrintResult); IAdvancedFriendsInterface::Execute_OnSessionInviteAccepted(Player,PInvited, BluePrintResult);
} }
} }
else else