mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 02:04:52 +01:00
Core/Global: reserve storage for script names vector
(cherry picked from commit c8bf1ab5f7)
This commit is contained in:
@@ -9158,6 +9158,8 @@ void ObjectMgr::LoadScriptNames()
|
||||
return;
|
||||
}
|
||||
|
||||
_scriptNamesStore.reserve(result->GetRowCount() + 1);
|
||||
|
||||
do
|
||||
{
|
||||
_scriptNamesStore.push_back((*result)[0].GetString());
|
||||
|
||||
Reference in New Issue
Block a user