Error Log Lecture 141

Hi Guys,

I have met a weid error:
CompilerResultsLog: Info Tank.cpp
CompilerResultsLog:Error: Error C:\Users\luw19\Source\Repos\Tank-Game\BattleTank\Source\BattleTank\Private\Tank.cpp(27) : warning C4458: declaration of ‘InputComponent’ hides class member
CompilerResultsLog:Error: Error C:\Egine\Epic Games\4.14\Engine\Source\Runtime\Engine\Classes\GameFramework/Actor.h(319) : note: see declaration of ‘AActor::InputComponent’

It only appear when I set Barrel = BarrelToSet. Yesterday I had to delete the project and recover it from git, so today I was checking when error appears. Like I said appears after setting up the barrel and protecting the pointer.

Anyone have an idea how to get rid of that error ?

It’s only a warning, basically saying your parameter name (InputComponent) is the same as a parent class member. So you can either ignore it or rename your parameter name, like InputComp or something.

1 Like

Weird is that sometimes it appear, sometimes not…