From bb632ff7d1ed3855416189b52ee150c5a05c5f9b Mon Sep 17 00:00:00 2001
From: David Gilbert <gilbert@vr.rwth-aachen.de>
Date: Mon, 13 May 2024 13:51:26 +0200
Subject: [PATCH] fix(interaction): Removes ranged based for loop
 initialization for pre cpp20 compatibility

---
 .../Interaction/Interactables/IntenSelect/IntenSelectable.cpp  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Source/RWTHVRToolkit/Private/Interaction/Interactables/IntenSelect/IntenSelectable.cpp b/Source/RWTHVRToolkit/Private/Interaction/Interactables/IntenSelect/IntenSelectable.cpp
index 9352bc3f..04c65616 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))
 		{
-- 
GitLab