Merge branch 'fix_csharp_profiler_events' of https://github.com/GoaLitiuM/FlaxEngine into GoaLitiuM-fix_csharp_profiler_events

This commit is contained in:
Wojtek Figat
2022-06-14 22:42:08 +02:00

View File

@@ -126,7 +126,7 @@ void ProfilerCPU::Thread::EndEvent()
{
const double time = Platform::GetTimeSeconds() * 1000.0;
_depth--;
Event& e = Buffer.Get(Buffer.GetCount() - 1);
Event& e = (Buffer.Last()--).Event();
e.End = time;
}