Skip to content

Commit 0a0c30c

Browse files
committed
4.22 Update
1 parent 9c3e8a8 commit 0a0c30c

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

AttributesExtension.uplugin

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"CreatedByURL": "http://piperift.com/",
1111
"DocsURL": "https://piperift.com/AttributesExtension/",
1212
"SupportURL": "info@piperift.com",
13-
"EngineVersion": "4.21.0",
13+
"EngineVersion": "4.22.0",
1414
"CanContainContent": false,
1515
"IsBetaVersion": false,
1616
"Modules": [

Source/Attributes/Public/AttrModifier.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ struct ATTRIBUTES_API FAttrModifier
1515
GENERATED_BODY()
1616

1717
FAttrModifier()
18-
: BasePercentageIncrement(0)
18+
: Guid(FGuid::NewGuid())
19+
, BasePercentageIncrement(0)
1920
, PercentageIncrement(0)
2021
, ScalarIncrement(0)
21-
, Guid(FGuid::NewGuid())
2222
{}
2323

2424
FAttrModifier(float BasePercentageIncrement, float PercentageIncrement = 0, float ScalarIncrement = 0)
25-
: BasePercentageIncrement(BasePercentageIncrement)
25+
: Guid(FGuid::NewGuid())
26+
, BasePercentageIncrement(BasePercentageIncrement)
2627
, PercentageIncrement(PercentageIncrement)
2728
, ScalarIncrement(ScalarIncrement)
28-
, Guid(FGuid::NewGuid())
2929
{}
3030

3131
public:

Source/Attributes/Public/FloatAttr.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ struct ATTRIBUTES_API FFloatAttr
3535
GENERATED_BODY()
3636

3737
/** Using an static counter for Ids.
38-
* Reduces Id from 16 to 4 bytes.
39-
* If you need more, change ids to 64
40-
*/
38+
* Reduces Id from 16 to 4 bytes.
39+
* If you need more, change ids to 64
40+
*/
4141
FFloatAttr(float BaseValue = 0.f)
4242
: BaseValue{ BaseValue }
43-
, Value { BaseValue }
44-
, Id(IdCount++)
43+
, Id{ IdCount++ }
44+
, Value(BaseValue)
4545
{}
4646

4747

@@ -72,7 +72,7 @@ struct ATTRIBUTES_API FFloatAttr
7272

7373
void AddModifier(const FAttrModifier& Modifier, const FAttrCategory& Category = FAttrCategory::NoCategory);
7474
bool RemoveModifier(const FAttrModifier& Modifier, const FAttrCategory& Category = FAttrCategory::NoCategory, bool bRemoveFromAllCategories = false);
75-
75+
7676
/**
7777
* Get all modifiers of a category, base mods will be returned if category is None
7878
* @return Modifiers of a category as an Array

0 commit comments

Comments
 (0)