Description

UGameplayAbility::ConfirmTaskByInstanceName() has an incorrect code comment that was copied and pasted from UGameplayAbility::CancelAbility(). The comment for UGameplayAbility::ConfirmTaskByInstanceName() should accurately represent what the function does - add a task with the instance name to the list to be confirmed next frame.

Steps to Reproduce
  1. Create a new C++ project in UE 4.24
  2. Navigate to Visual Studio  UGameplayAbility::ConfirmTaskByInstanceName() Line 747

        Note: This is located in  UE4/Plugins/Runtime/GameplayAbilities/Source/GameplayAbiltiies/ Public/Abilities/GameplayAbility.h

 

Results:

/** Destroys instanced-per-execution abilities. Instance-per-actor abilities should 'reset'. Non instance abilities - what can we do? */
UFUNCTION(BlueprintCallable, Category = Ability)
void ConfirmTaskByInstanceName(FName InstanceName, bool bEndTask);

 

Expected:

The comment should look something like:

/** Add any task with this instance name to a list to be confirmed next frame. */ UFUNCTION(BlueprintCallable, Category = Ability) void ConfirmTaskByInstanceName(FName InstanceName, bool bEndTask);

 

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-92320 in the post.

1
Login to Vote

Fixed
ComponentUE - Gameplay
Affects Versions4.244.25
Target Fix4.26
Fix Commit12980272
Main Commit13686746
CreatedApr 22, 2020
ResolvedApr 22, 2020
UpdatedJun 16, 2020
View Jira Issue