From 33ed65e14e0ec486fcfe8dd265d5596c6f20d058 Mon Sep 17 00:00:00 2001 From: "jonathan.ehret" <ehret@vr.rwth-aachen.de> Date: Wed, 22 Feb 2023 12:44:36 +0100 Subject: [PATCH] fix not being able to restart a condition and log data, althought this should normally not be done during a study! --- Source/StudyFrameworkPlugin/Private/SFCondition.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/StudyFrameworkPlugin/Private/SFCondition.cpp b/Source/StudyFrameworkPlugin/Private/SFCondition.cpp index 2946459..ab8d0ce 100644 --- a/Source/StudyFrameworkPlugin/Private/SFCondition.cpp +++ b/Source/StudyFrameworkPlugin/Private/SFCondition.cpp @@ -203,12 +203,13 @@ void USFCondition::Begin() { StartTime = FPlatformTime::Seconds(); - for (auto Vars : DependentVariablesValues) + for (auto& Vars : DependentVariablesValues) { Vars.Value = ""; } bStarted = true; + bConditionFinished = false; //TODO: anything else to setup? } -- GitLab