Crash while Playing in Editor when using World->SpawnActor<AActor>

Guys do you know if there are any other setups i must do before spawning a actor in the Level? In my project there are various places that i spawn actors. But in this specific case, everytime this function is called my game Freezes and then crashes. I don’t have the slightest idea why. The code is almost the same in every place but in this class that it simply Crashes. Just to understand the class it is a Torpedo that when he explodes he spawns an explosion actor to deal damage. It so simple but it breaks the entire execution.

Please someone help me on this.

Code:
void ATorpedoTrap::Explode()
{
//Clear Any Timers
GetWorldTimerManager().ClearAllTimersForObject(this);
TorpedoUpdateTimeline.Stop();

//Check for a valid world
UWorld* const World = GetWorld();
if (World)
{
	//Set the spawn parameters
	FActorSpawnParameters SpawnParams;
	SpawnParams.Owner = this;
	SpawnParams.Instigator = Instigator;

	// Get Actor Location to Spawn
	FVector SpawnLocation = GetActorLocation();

	//Set a rotation
	FRotator SpawnRotation = GetActorRotation();

	// Spawn the pickup
	AActor* const SpawnedActor = World-&gt;SpawnActor&lt;AActor&gt;(Explosion, SpawnLocation, SpawnRotation, SpawnParams);

	
	//Setup the Explosion params
	AExplosion* Explosion = Cast&lt;AExplosion&gt;(SpawnedActor);
	if (Explosion) {
		Explosion-&gt;Setup(2.f);
	}
}
if (!Destroy())
{
	//Treat Powerup Failded destruction
	UE_LOG(LogClass, Log, TEXT("Not able to destroy actor"));
}

}

Try changing your SpawnActor line to “AActor* const SpawnedActor = World->SpawnActor<AActor>(AExplosion, SpawnLocation, SpawnRotation, SpawnParams);”? It looks like you’re trying to provide it the class “Explosion”, but the class is being declared as “AExplosion”. (See: UWorld::SpawnActor | Unreal Engine Documentation)

Do you have a stack trace of the crash available?