Skip to content

Commit

Permalink
Merge branch 'mr-156'
Browse files Browse the repository at this point in the history
  • Loading branch information
nihonium committed Dec 6, 2023
2 parents ca429f2 + 03fdc4a commit ac064ab
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions code/components/gta-net-five/src/CloneExperiments.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3315,8 +3315,6 @@ static void SendAlterWantedLevelEvent2Hook(void* a1, void* a2, void* a3, void* a
}
#endif

std::string GetType(void* d);

static void NetEventError()
{
auto pool = rage::GetPoolBase("netGameEvent");
Expand All @@ -3325,11 +3323,9 @@ static void NetEventError()

for (int i = 0; i < pool->GetSize(); i++)
{
auto e = pool->GetAt<void>(i);

if (e)
if (const auto netGameEvent = pool->GetAt<rage::netGameEvent>(i))
{
poolCount[GetType(e)]++;
poolCount[netGameEvent->GetName()]++;
}
}

Expand Down

0 comments on commit ac064ab

Please sign in to comment.