mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 17:54:48 +01:00
Core/SmartAI: do not report not used smart scripts as error
--HG-- branch : trunk
This commit is contained in:
@@ -1043,7 +1043,7 @@ class ScriptMgr
|
||||
else
|
||||
{
|
||||
// The script uses a script name from database, but isn't assigned to anything.
|
||||
if (script->GetName().find("example") == std::string::npos)
|
||||
if (script->GetName().find("example") == std::string::npos && script->GetName().find("smart") == std::string::npos)
|
||||
sLog.outErrorDb("Script named '%s' does not have a script name assigned in database.",
|
||||
script->GetName().c_str());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user