Engine crash while compile and restart

Apperiantly the engine doesn’t like this line: UGameplayStatics::GetAllActorsOfClass(GetWorld(), AZombieSpawn::StaticClass(), ZombieSpawns);
which I found elsewhere in the answerhub