aboutsummaryrefslogtreecommitdiff
path: root/src/bindings/interface/ScriptMgr.cpp
diff options
context:
space:
mode:
authorChaz Brown <iamparadox@netscape.net>2009-04-25 13:36:14 -0400
committerChaz Brown <iamparadox@netscape.net>2009-04-25 13:36:14 -0400
commit7d40421f43eadb89b5d0c320dc4f482befb06002 (patch)
tree6ca3c917ac0a2d93c6f4bc837c6b0a3192b85fe7 /src/bindings/interface/ScriptMgr.cpp
parent44c213ba6f7d378f21a321b7c34196d4d12fbde8 (diff)
Fix TrinityScripts to use the correct config file when -c config_name.conf is used on the trinitycore commandline, thanks to gixxer_j for getting me to finally fix it, and for testing the patch. Be sure to do a full recompile, or you may get errors, this may even require a fresh pull from the repo for some.
--HG-- branch : trunk
Diffstat (limited to 'src/bindings/interface/ScriptMgr.cpp')
-rw-r--r--src/bindings/interface/ScriptMgr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bindings/interface/ScriptMgr.cpp b/src/bindings/interface/ScriptMgr.cpp
index 7ef38997ace..57e6ea7c224 100644
--- a/src/bindings/interface/ScriptMgr.cpp
+++ b/src/bindings/interface/ScriptMgr.cpp
@@ -50,7 +50,7 @@ void ScriptsFree()
}
TRINITY_DLL_EXPORT
-void ScriptsInit()
+void ScriptsInit(char const* cfg_file = "trinitycore.conf")
{
nrscripts = 0;
num_inst_scripts = 0;