diff --git a/Source/RWTHVRToolkit/Private/Interaction/Interactables/IntenSelect/IntenSelectable.cpp b/Source/RWTHVRToolkit/Private/Interaction/Interactables/IntenSelect/IntenSelectable.cpp index f99b7d65df959a5725996eebaab3ec8bc2fd89e9..b813e2f9c2906079c2718140c84a78b41d4ebb92 100644 --- a/Source/RWTHVRToolkit/Private/Interaction/Interactables/IntenSelect/IntenSelectable.cpp +++ b/Source/RWTHVRToolkit/Private/Interaction/Interactables/IntenSelect/IntenSelectable.cpp @@ -97,7 +97,8 @@ void UIntenSelectable::InitDefaultBehaviourReferences() { // Scoring - for (TSet<UActorComponent*> AllComponents = GetOwner()->GetComponents(); UActorComponent * c : AllComponents) + TSet<UActorComponent*> AllComponents = GetOwner()->GetComponents(); + for (UActorComponent * c : AllComponents) { if (UIntenSelectableScoring* TryToGetScoring = Cast<UIntenSelectableScoring>(c)) {