I tried to add to array a variable from datatable, which was declared using TSubclassOf.
And i got this error
this is cpp file
AMainItem* Item = ItemDataTable[ArrayIndex]->FindRow(FName(FString::FromInt(IndexOfElement)), “”, false)->Item;
this is my struct in h file
USTRUCT(BlueprintType)
struct FRandomItemData : public FTableRowBase
{
GENERATED_BODY()
UPROPERTY(EditAnywhere)
TSubclassOf<AMainItem> Item;
UPROPERTY(EditAnywhere)
int32 Amount = 1;
UPROPERTY(EditAnywhere)
int32 Cost = 1;
};