[ScriptError]: Improve speed since patch number is known (#816)
This commit is contained in:
parent
2ad42c2052
commit
cf83c6d315
@ -873,6 +873,8 @@ namespace Components::GSC
|
||||
{
|
||||
#ifdef SCRIPT_ERROR_PATCH
|
||||
std::vector<std::pair<std::size_t, void*>> patches;
|
||||
patches.resize(200);
|
||||
|
||||
const auto p = [&patches](const std::size_t a, void* b)
|
||||
{
|
||||
patches.emplace_back(a, b);
|
||||
|
@ -105,10 +105,12 @@ namespace Components
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (ent1->client->sess.cs.team)
|
||||
{
|
||||
return ent1->client->sess.cs.team == ent2->client->sess.cs.team;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user