From f11e22216da601612de2419910d07e20ef93c148 Mon Sep 17 00:00:00 2001 From: Kitzunu <24550914+Kitzunu@users.noreply.github.com> Date: Sat, 10 Aug 2024 16:29:36 +0200 Subject: [PATCH] Update LuaEngine.cpp --- src/LuaEngine/LuaEngine.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/LuaEngine/LuaEngine.cpp b/src/LuaEngine/LuaEngine.cpp index b238504ae8..eb23fcf40f 100644 --- a/src/LuaEngine/LuaEngine.cpp +++ b/src/LuaEngine/LuaEngine.cpp @@ -7,6 +7,7 @@ #include "Hooks.h" #include "LuaEngine.h" #include "BindingMap.h" +#include "Chat.h" #include "ElunaEventMgr.h" #include "ElunaIncludes.h" #include "ElunaTemplate.h" @@ -136,7 +137,7 @@ void Eluna::_ReloadEluna() if (eConfigMgr->GetOption("Eluna.PlayerAnnounceReload", false)) eWorld->SendServerMessage(SERVER_MSG_STRING, "Reloading Eluna..."); else - eWorld->SendGMText(SERVER_MSG_STRING, "Reloading Eluna..."); + ChatHandler(nullptr).SendGMText(SERVER_MSG_STRING, "Reloading Eluna..."); // Remove all timed events sEluna->eventMgr->SetStates(LUAEVENT_STATE_ERASE);