Why can't I link these???

So I have a map as an output of a function - and I wanna pass it to another function…but it won’t let me:

what the???

You can’t link those because the maps are of a different type.

  • Your output map is of type:
    TMap<BP_BaseModuleObjectReference, BP_RawIngredientObjectRefernce>
  • Your input map is of type
    TMap<BP_BaseModuleObjectReference, BP_BaseObjectObjectRefernce>

Compound types can’t be implicitly converted.

You need to make your input and output types exactly the same.

1 Like

but they are - coz bp_raw_ingredient IS a bp_base_object…

it’s fine - i wrote a wrapper function to do the convert - still though i reckon it should work

These are different types.

The only reason you can use the derived class in a base type parameter is because internally there is a hidden implicit conversion. (and this is also not always true)

2 Likes