From 6106a2dae67339baafad83955ff9fe25b808553b Mon Sep 17 00:00:00 2001 From: baz Date: Sat, 16 Nov 2024 02:19:24 +0000 Subject: [PATCH] Update EXPComponent delegate usage --- Source/vampires/Weapon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/vampires/Weapon.cpp b/Source/vampires/Weapon.cpp index 5c10f06..195d957 100644 --- a/Source/vampires/Weapon.cpp +++ b/Source/vampires/Weapon.cpp @@ -23,7 +23,7 @@ void AWeapon::BeginPlay() if (expcomponent) { - expcomponent->OnEXPLevelUp.BindUObject(this, &AWeapon::UpgradeWeapon); + expcomponent->OnEXPLevelUp.AddUniqueDynamic(this, &AWeapon::UpgradeWeapon); } }