Spawning an actor in C++ on a client causes crash

I manually set the role to ROLE_Authority and it works now. Thanks!