C++ First Person Shooter Tutorial - 3.2 need help!

C++ First Person Shooter Tutorial - 3.2 need help!
‘AActor::Instigator’: cannot access private member declared in class ‘AActor’

Use GetInstigator().

SpawnParams.Instigator = GetInstigator();

This worked for me. thanks