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

(cherry picked from commit b7b49fe35f)

Conflicts:
	src/server/game/Battlegrounds/BattlegroundMgr.cpp
	src/server/game/Globals/ObjectMgr.cpp
This commit is contained in:
Naios
2015-11-04 20:06:20 +01:00
committed by Carbenium
parent 23153c8bf1
commit 3a3a6bbfd2
9 changed files with 31 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.