Skip to content
Snippets Groups Projects
Commit 1b76d999 authored by Jonathan Ehret's avatar Jonathan Ehret
Browse files

fix bug deleting nay data from other participants before (both on restarting a...

fix bug deleting nay data from other participants before (both on restarting a condition and when recovering from a crash)
parent 67fb1150
No related branches found
No related tags found
No related merge requests found
...@@ -357,6 +357,11 @@ void USFParticipant::RemoveLinesOfConditionAndWriteToFile(USFCondition* Conditio ...@@ -357,6 +357,11 @@ void USFParticipant::RemoveLinesOfConditionAndWriteToFile(USFCondition* Conditio
CleanedLines.Add(Lines[i]); CleanedLines.Add(Lines[i]);
} }
} }
else
{
//from another participant so just keep this line!
CleanedLines.Add(Lines[i]);
}
} }
FFileHelper::SaveStringArrayToFile(CleanedLines, *Filename, FFileHelper::EEncodingOptions::ForceUTF8, FFileHelper::SaveStringArrayToFile(CleanedLines, *Filename, FFileHelper::EEncodingOptions::ForceUTF8,
&IFileManager::Get(), EFileWrite::FILEWRITE_None); &IFileManager::Get(), EFileWrite::FILEWRITE_None);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment