diff --git a/Source/RWTHVRToolkit/Private/Interaction/Interactables/IntenSelect/IntenSelectable.cpp b/Source/RWTHVRToolkit/Private/Interaction/Interactables/IntenSelect/IntenSelectable.cpp index 9352bc3f8e0c1e734579c94bf7326175af7089f3..04c656168e38ace4794c8719ce24fbcb13950dcf 100644 --- a/Source/RWTHVRToolkit/Private/Interaction/Interactables/IntenSelect/IntenSelectable.cpp +++ b/Source/RWTHVRToolkit/Private/Interaction/Interactables/IntenSelect/IntenSelectable.cpp @@ -94,7 +94,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)) {