mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Eluna remove crash possibility of using ReloadEluna global function on returning hooks, restrict the use of the reload command
This commit is contained in:
@@ -353,6 +353,7 @@ public:
|
||||
typedef std::set<std::string> ScriptPaths;
|
||||
|
||||
static Eluna* GEluna;
|
||||
static bool reload;
|
||||
|
||||
lua_State* L;
|
||||
int userdata_table;
|
||||
@@ -380,6 +381,8 @@ public:
|
||||
static ScriptPaths scripts;
|
||||
static void Initialize();
|
||||
static void Uninitialize();
|
||||
// Use Eluna::reload = true; instead.
|
||||
// This will be called on next update
|
||||
static void ReloadEluna();
|
||||
void static GetScripts(std::string path, ScriptPaths& scripts);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user