How to fix error C4716

Thanks in advance,
regards,
D.

You didn’t provide your code but the error says you declared the function returns a value but you don’t have a return statement in your function. I’m pretty sure the Ben’s code for that function is

return Cast<ATank>(GetPawn());

yes
I found a problem and I fix it
I forgot to return Cast< ATank >(GetPawn());

Privacy & Terms