diff options
author | Chaz Brown <iamparadox@netscape.net> | 2009-04-25 13:35:46 -0400 |
---|---|---|
committer | Chaz Brown <iamparadox@netscape.net> | 2009-04-25 13:35:46 -0400 |
commit | aba24628ba8050ac3ee667ecae6c4f9a075ad54d (patch) | |
tree | 1f10010e3ba4a2c83b824e2f3d90cf1b6b077d60 /src/game/ScriptCalls.cpp | |
parent | a00563a1278f0bc6f816750b3c92d0117eac913e (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/game/ScriptCalls.cpp')
-rw-r--r-- | src/game/ScriptCalls.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/ScriptCalls.cpp b/src/game/ScriptCalls.cpp index a3015e88a2f..fec1afb08ae 100644 --- a/src/game/ScriptCalls.cpp +++ b/src/game/ScriptCalls.cpp @@ -22,9 +22,11 @@ #include <dlfcn.h> #endif +#include "Common.h" #include "Platform/Define.h" #include "ScriptCalls.h" #include "World.h" +#include "Config/ConfigEnv.h" ScriptsSet Script=NULL; @@ -98,7 +100,7 @@ bool LoadScriptingModule(char const* libName) UnloadScriptingModule(); Script=testScript; - Script->ScriptsInit(); + Script->ScriptsInit(sConfig.GetFilename().c_str()); sWorld.SetScriptsVersion(Script->ScriptsVersion()); |