Since the implementation of the content of this lesson I get this crash whenever a projectile is spawned.
The line that is referenced in the Projectile.cpp is
Mesh->OnComponentHit.AddDynamic(this, &AProjectile::OnHit);
And the line thats referenced in the BasePawn.cpp is
auto Projectile = GetWorld()->SpawnActor<AProjectile>(ProjectileClass, Location, Rotation);
Both code lines where there before and working just fine. I don’t know exactly what the crash report is telling me, so any help would be appreciated!
Assertion failed: DelegateOwner->IsValidLowLevelFast(false) [File:H:\Unreal Engine\UE_5.0\Engine\Source\Runtime\CoreUObject\Public\UObject\SparseDelegate.h] [Line: 196]
UnrealEditor_ToonTanks!AProjectile::BeginPlay() [H:\Unreal Projects\ToonTanksProject\ToonTanks\Source\ToonTanks\Projectile.cpp:31]
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_ToonTanks!ABasePawn::Fire() [H:\Unreal Projects\ToonTanksProject\ToonTanks\Source\ToonTanks\BasePawn.cpp:49]
UnrealEditor_ToonTanks!TBaseUObjectMethodDelegateInstance<0,ATank,void __cdecl(void),FDefaultDelegateUserPolicy>::Execute() [H:\Unreal Engine\UE_5.0\Engine\Source\Runtime\Core\Public\Delegates\DelegateInstancesImpl.h:594]
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Core
UnrealEditor_Core
UnrealEditor_Core
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_UnrealEd
UnrealEditor_UnrealEd
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
kernel32
ntdll