Core/SmartAI: do not report not used smart scripts as error

--HG--
branch : trunk
This commit is contained in:
Rat
2010-11-02 17:29:36 +01:00
parent e95eb72603
commit f27b6f6097

View File

@@ -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());
}