FMath::Clamp : no matching overloaded function found?

Not entirely sure how to fix this…
All the errors

My source code

Edit:
Fixed :slight_smile:

Would you be able to tell us how you fixed it?
I’m running into the same issue and haven’t found anything super helpful online that helps.

Thanks.

OK, after digging a bit - looks like the FMath::Clamp function doesn’t like comparing float to int (as Ben mentions in the video).
I’d stupidly forgotten to change out the “DamageAmount” float reference for the newly converted “DamagePoints” int32.

Privacy & Terms