Fix weapon data object
This commit is contained in:
parent
1a3516c263
commit
fa03e49f1a
@ -22,7 +22,11 @@ void UUpgradeButtonDataObject::SetData(TSubclassOf<AWeapon> Weapon, UUserWidget*
|
|||||||
{
|
{
|
||||||
if (AWeapon* tempWeapon = NewObject<AWeapon>(this, Weapon))
|
if (AWeapon* tempWeapon = NewObject<AWeapon>(this, Weapon))
|
||||||
{
|
{
|
||||||
SetData(tempWeapon, ParentWidget);
|
WeaponName = tempWeapon->GetWeaponName();
|
||||||
|
WeaponDescription = tempWeapon->GetDescription();
|
||||||
|
WeaponIcon = tempWeapon->GetIcon();
|
||||||
|
WeaponTemplate = Weapon;
|
||||||
|
Parent = ParentWidget;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user