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:
@@ -12,6 +12,7 @@
|
||||
|
||||
Eluna::ScriptPaths Eluna::scripts;
|
||||
Eluna* Eluna::GEluna = NULL;
|
||||
bool Eluna::reload = false;
|
||||
|
||||
extern void RegisterFunctions(lua_State* L);
|
||||
|
||||
@@ -45,8 +46,11 @@ void Eluna::Uninitialize()
|
||||
|
||||
void Eluna::ReloadEluna()
|
||||
{
|
||||
eWorld->SendServerMessage(SERVER_MSG_STRING, "Reloading Eluna...");
|
||||
Uninitialize();
|
||||
Initialize();
|
||||
|
||||
reload = false;
|
||||
}
|
||||
|
||||
Eluna::Eluna():
|
||||
|
||||
Reference in New Issue
Block a user