Download

Learning c++ ...I've got an error

Hi…

I’m programming the MeleeWeapon class…

It says that I can’t convert from “AWardSword::WardCharacterCharacter*” to “AActor*”…how can I resolve?
I’ve searched for find error with the book, but there aren’t.
How can I resolve?

HELP ME!!

Cast<AActor>(WeaponHolder);
Returns nullptr if cast failed or AActor* if successful.