Core/Globals: Use std::string rather than char* to pass script names around.
(cherry picked from commit b7b49fe35f87e83813466cb302ff17381792e607) Conflicts: src/server/game/Battlegrounds/BattlegroundMgr.cpp src/server/game/Globals/ObjectMgr.cpp
This commit is contained in:
1 parent
23153c8bf1
commit
3a3a6bbfd2
9 files changed
+31
-24
No files matched your search
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user