title: Spawn Actor with a class (UE4)
body: <p>I'm currently trying to spawn a trap in my scene with the function "Spawn Actor" but, oddly, it don't want to take my static class as a UClass*. So this line :</p>
  
  <pre><code>currentTrap = GetWorld()-&gt;SpawnActor(AOMFBallista::StaticClass, GetOwner()-&gt;GetActorLocation());
  </code></pre>
  
  <p>just does'nt want to work. The error is : </p>
  
  <blockquote>
    <p>'AActor *UWorld::SpawnActor(UClass *,const FTransform *,const
    FActorSpawnParameters &amp;)' : unable to convert the argument 1 from
    'UClass *(__cdecl *)(void)' to 'UClass
    *'    OrcMustFry  D:\SVN\2018-2019\Sections\Prog3B\Cours\UE4\Application\OrcMustFry\Step3\Correction\Source\OrcMustFry\PlaceTrapComponent.cpp 36</p>
  </blockquote>
  
  <p>If you have any idea of where this problem can come, I would be very grateful !</p>