From 739ebcc8efaef3aa5320d14fb8df07ddd2335349 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Do=C4=9Fa=20Can=20Yan=C4=B1ko=C4=9Flu?= Date: Fri, 8 Oct 2021 12:39:33 +0300 Subject: [PATCH] Partially fix duplicate shapes in #240 --- Source/ALSV4_CPP/Private/Components/ALSDebugComponent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/ALSV4_CPP/Private/Components/ALSDebugComponent.cpp b/Source/ALSV4_CPP/Private/Components/ALSDebugComponent.cpp index 879fcff9..3822039c 100644 --- a/Source/ALSV4_CPP/Private/Components/ALSDebugComponent.cpp +++ b/Source/ALSV4_CPP/Private/Components/ALSDebugComponent.cpp @@ -34,7 +34,7 @@ void UALSDebugComponent::TickComponent(float DeltaTime, ELevelTick TickType, Super::TickComponent(DeltaTime, TickType, ThisTickFunction); #if !UE_BUILD_SHIPPING - if (!OwnerCharacter) + if (!OwnerCharacter || OwnerCharacter->GetLocalRole() != ROLE_Authority) { return; }