Skip to content

Commit

Permalink
Test container before clear
Browse files Browse the repository at this point in the history
Test container before clear
  • Loading branch information
SmileYzn authored Sep 24, 2024
1 parent 772b334 commit 23a2e62
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions LogApi/LogApi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,11 @@ void CLogApi::ServerActivate()
this->m_FrameTime = (gpGlobals->time + this->m_log_api_delay->value);

// Clear events
this->m_Events.clear();

if (!this->m_Events.empty())
{
this->m_Events.clear();
}

try
{
// File stream
Expand Down

0 comments on commit 23a2e62

Please sign in to comment.