Core/Global: reserve storage for script names vector

(cherry picked from commit c8bf1ab5f7e2e44e37c5affbf69c64917dc45c9e)
This commit is contained in:
ariel-
2020-04-24 17:18:50 +02:00
committed by funjoker
parent c5869e9087
commit 4ec50b35ea
+2
View File
@@ -9158,6 +9158,8 @@ void ObjectMgr::LoadScriptNames()
return;
}
_scriptNamesStore.reserve(result->GetRowCount() + 1);
do
{
_scriptNamesStore.push_back((*result)[0].GetString());