Skip to content
Open
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion Source/Abilities/Abilities.Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ public Abilities(ReadOnlyTargetRules Target) : base(Target)
"Core",
"CoreUObject",
"Engine",
"GameplayTags"
"GameplayTags",
"DeveloperSettings"
});

PrivateDependencyModuleNames.AddRange(new string[] {});
Expand Down
2 changes: 1 addition & 1 deletion Source/Abilities/Private/Ability.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ void UAbility::PreDestroyFromReplication()
}

#if WITH_EDITOR
bool UAbility::CanEditChange(const UProperty* InProperty) const
bool UAbility::CanEditChange(const FProperty* InProperty) const
{
bool bCanEdit = Super::CanEditChange(InProperty);

Expand Down
2 changes: 1 addition & 1 deletion Source/Abilities/Private/Buff.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include "AbilitiesComponent.h"

#if WITH_EDITOR
bool UBuff::CanEditChange(const UProperty* InProperty) const
bool UBuff::CanEditChange(const FProperty* InProperty) const
{
bool bCanEdit = Super::CanEditChange(InProperty);

Expand Down
4 changes: 3 additions & 1 deletion Source/Abilities/Public/AbilitiesComponent.h
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,9 @@ inline bool UAbilitiesComponent::HasAuthority() const

inline int32 UAbilitiesComponent::GetBuffCount(const UBuff* Buff) const
{
if (const auto* BuffCount = Buffs.Find(Buff))
FBuffCount SearchBuff = FBuffCount(const_cast<UBuff*>(Buff), 1);
const FBuffCount* BuffCount = Buffs.Find(SearchBuff);
if (BuffCount != NULL)
{
return BuffCount->Count;
}
Expand Down