Remove assigning of spawned Throwable

This commit is contained in:
baz 2023-10-15 20:00:56 +01:00
parent ca617a8a3c
commit b234045698
1 changed files with 2 additions and 2 deletions

View File

@ -383,7 +383,7 @@ void APlayerCharacter::ProcessHits(TArray<FHitResult> hits)
}
auto staticMeshComponent = Hit.GetActor()->GetComponentByClass<UStaticMeshComponent>();
if (staticMeshComponent && !staticMeshComponent->IsSimulatingPhysics() && CurrentWeapon->GetDecalActor())
{
FTransform transform;
@ -664,7 +664,7 @@ void APlayerCharacter::ThrowExplosiveCallback()
SpawnLocation += (25.0f * GetActorForwardVector());
SpawnLocation.Z += BoxExtent.Z;
AThrowable* Throwable = GetWorld()->SpawnActor<AThrowable>(ThrowableInventory.Pop(), SpawnLocation, FRotator::ZeroRotator);
GetWorld()->SpawnActor<AThrowable>(ThrowableInventory.Pop(), SpawnLocation, FRotator::ZeroRotator);
}
}