Skip to content
Snippets Groups Projects
Commit b2ee804e authored by Malte Christian Kögel's avatar Malte Christian Kögel
Browse files

Added workaround for the invalid object problem described in #98

parent bccf9f7f
Branches
Tags
No related merge requests found
...@@ -91,6 +91,19 @@ void USFLogObject::WritePositionLogToFile() { ...@@ -91,6 +91,19 @@ void USFLogObject::WritePositionLogToFile() {
USFGameInstance::Get()->GetLogObject()->CreatePositionLogFile(); USFGameInstance::Get()->GetLogObject()->CreatePositionLogFile();
} }
int i = 0;
while(i < LogObject->ComponentLoggingInfoArray.Num()) {
if (i >= LogObject->ComponentLoggingInfoArray.Num()) {
break;
}
if(!LogObject->ComponentLoggingInfoArray[i].ComponentToLog->IsValidLowLevelFast())
{
LogObject->ComponentLoggingInfoArray.RemoveAt(i);
continue;
}
i++;
}
for (auto& ComponentLoggingInfo : LogObject->ComponentLoggingInfoArray) { for (auto& ComponentLoggingInfo : LogObject->ComponentLoggingInfoArray) {
if (ComponentLoggingInfo.LogNextTick == true) { if (ComponentLoggingInfo.LogNextTick == true) {
ComponentLoggingInfo.LogNextTick = false; ComponentLoggingInfo.LogNextTick = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment