aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-05-12 11:16:26 -0500
committermegamage <none@none>2009-05-12 11:16:26 -0500
commit1fbc7377d1acfcee7397771c9d0def5ae345da8a (patch)
tree34d2ba419f3ebe2a1f1a5a084160f8f97ed92cfa /src
parentd4aa5605d4efc8b5ab9735bb2d03b2a6bff413d6 (diff)
*Do not show error for not assigned example scripts.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/bindings/scripts/ScriptMgr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bindings/scripts/ScriptMgr.cpp b/src/bindings/scripts/ScriptMgr.cpp
index 18465bfacf7..4d7ed09fff4 100644
--- a/src/bindings/scripts/ScriptMgr.cpp
+++ b/src/bindings/scripts/ScriptMgr.cpp
@@ -1657,7 +1657,7 @@ void Script::RegisterSelf()
m_scripts[id] = this;
++num_sc_scripts;
}
- else
+ else if(Name.find("example") == std::string::npos)
{
error_db_log("CRASH ALERT! TrinityScript: RegisterSelf, but script named %s does not have ScriptName assigned in database.",(this)->Name.c_str());
delete this;