From 3c6bce0998e4ddfcfb521044697ab3698c139fc7 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 f99b7d65..b813e2f9 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))
 		{
-- 
GitLab