Merge pull request #817 from diamante0018/develop

[ScriptError]: Use reserve
This commit is contained in:
Edo 2023-03-07 22:17:33 +00:00 committed by GitHub
commit a663d98685
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -873,7 +873,7 @@ namespace Components::GSC
{ {
#ifdef SCRIPT_ERROR_PATCH #ifdef SCRIPT_ERROR_PATCH
std::vector<std::pair<std::size_t, void*>> patches; std::vector<std::pair<std::size_t, void*>> patches;
patches.resize(200); patches.reserve(200);
const auto p = [&patches](const std::size_t a, void* b) const auto p = [&patches](const std::size_t a, void* b)
{ {