From aba24628ba8050ac3ee667ecae6c4f9a075ad54d Mon Sep 17 00:00:00 2001 From: Chaz Brown Date: Sat, 25 Apr 2009 13:35:46 -0400 Subject: 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 --- src/bindings/interface/ScriptMgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/bindings/interface/ScriptMgr.cpp') diff --git a/src/bindings/interface/ScriptMgr.cpp b/src/bindings/interface/ScriptMgr.cpp index 3cb45d8170b..c5d4652d5e6 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; -- cgit v1.2.3