diff --git a/src/Components/Modules/GSC/ScriptError.cpp b/src/Components/Modules/GSC/ScriptError.cpp index 5ed9e32b..0082d15f 100644 --- a/src/Components/Modules/GSC/ScriptError.cpp +++ b/src/Components/Modules/GSC/ScriptError.cpp @@ -873,6 +873,8 @@ namespace Components::GSC { #ifdef SCRIPT_ERROR_PATCH std::vector> patches; + patches.resize(200); + const auto p = [&patches](const std::size_t a, void* b) { patches.emplace_back(a, b); diff --git a/src/Components/Modules/Voice.cpp b/src/Components/Modules/Voice.cpp index 83e22a31..296ff4a8 100644 --- a/src/Components/Modules/Voice.cpp +++ b/src/Components/Modules/Voice.cpp @@ -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; }