chore(core): Cleanup code p2 (#16041)
* Update AchievementMgr.cpp * Update M2Stores.cpp * Update LFGHandler.cpp * Update PetHandler.cpp * Update WaypointMovementGenerator.cpp * Update ScriptMgr.cpp * Update SpellAuras.cpp * Update Spell.cpp * Update SecretMgr.cpp * Update SpellScript.cpp * Update SecretMgr.cpp * Update Spell.cpp * Update SpellAuras.cpp * Add files via upload * Update PetHandler.cpp * Update PetHandler.cpp * Update CalendarMgr.cpp * Update LFG.h * Update WaypointMovementGenerator.cpp * Update MapScripts.cpp * Update Unit.cpp * Update SmartScript.cpp
This commit is contained in:
parent
5c5c28c715
commit
ab7c12fe41
11 changed files with 27 additions and 27 deletions
|
|
@ -159,7 +159,7 @@ void ScriptMgr::CheckIfScriptsInDatabaseExist()
|
|||
{
|
||||
for (auto const& scriptName : sObjectMgr->GetScriptNames())
|
||||
{
|
||||
if (uint32 sid = sObjectMgr->GetScriptId(scriptName.c_str()))
|
||||
if (uint32 sid = sObjectMgr->GetScriptId(scriptName))
|
||||
{
|
||||
if (!ScriptRegistry<SpellScriptLoader>::GetScriptById(sid) &&
|
||||
!ScriptRegistry<ServerScript>::GetScriptById(sid) &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue