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
This commit is contained in:
Chaz Brown
2009-04-25 13:35:46 -04:00
parent a00563a127
commit aba24628ba
4 changed files with 8 additions and 6 deletions

View File

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