Core/Global: reserve storage for script names vector

(cherry picked from commit c8bf1ab5f7)
This commit is contained in:
ariel-
2017-03-27 02:59:26 -03:00
committed by funjoker
parent c5869e9087
commit 4ec50b35ea

View File

@@ -9158,6 +9158,8 @@ void ObjectMgr::LoadScriptNames()
return;
}
_scriptNamesStore.reserve(result->GetRowCount() + 1);
do
{
_scriptNamesStore.push_back((*result)[0].GetString());