Core/Globals: Use std::string rather than char* to pass script names around.

This commit is contained in:
Naios
2015-11-04 20:06:20 +01:00
parent 12d1993994
commit b7b49fe35f
9 changed files with 30 additions and 24 deletions

View File

@@ -129,7 +129,7 @@ class ScriptRegistry
{
// Get an ID for the script. An ID only exists if it's a script that is assigned in the database
// through a script name (or similar).
uint32 id = sObjectMgr->GetScriptId(script->GetName().c_str());
uint32 id = sObjectMgr->GetScriptId(script->GetName());
if (id)
{
// Try to find an existing script.