diff --git a/Source/vampires/HealthComponent.h b/Source/vampires/HealthComponent.h index 462b268..b3a1481 100644 --- a/Source/vampires/HealthComponent.h +++ b/Source/vampires/HealthComponent.h @@ -12,19 +12,19 @@ struct FDamageInfo GENERATED_BODY() UPROPERTY() - AActor* DamagedActor; + TObjectPtr DamagedActor = nullptr; UPROPERTY() - float Damage; + float Damage = 0.0f; UPROPERTY() - const UDamageType* DamageType; + const UDamageType* DamageType = nullptr; UPROPERTY() - AController* InstigatedBy; + TObjectPtr InstigatedBy = nullptr; UPROPERTY() - AActor* DamageCauser; + TObjectPtr DamageCauser = nullptr; }; DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FOnDamageDelegate, FDamageInfo, damageInfo); diff --git a/Source/vampires/TableRows/ExpTableRow.h b/Source/vampires/TableRows/ExpTableRow.h index bf57827..34ad5b9 100644 --- a/Source/vampires/TableRows/ExpTableRow.h +++ b/Source/vampires/TableRows/ExpTableRow.h @@ -14,14 +14,14 @@ struct FExpTableRow : public FTableRowBase GENERATED_BODY() UPROPERTY(EditAnywhere, BlueprintReadWrite) - int Level; + int Level = 0; UPROPERTY(EditAnywhere, BlueprintReadWrite) - int ExpRequiredForNextLevel; + int ExpRequiredForNextLevel = 0; UPROPERTY(EditAnywhere, BlueprintReadWrite) - int CumulativeExpForNextLevel; + int CumulativeExpForNextLevel = 0; UPROPERTY(EditAnywhere, BlueprintReadWrite) - int CumulativeExpForPreviousLevel; + int CumulativeExpForPreviousLevel = 0; };