[ScriptError]: Use reserve

This commit is contained in:
Edo 2023-03-07 22:09:02 +00:00 committed by GitHub
parent cf83c6d315
commit e127ec187b
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)
{ {