From c0b8e217287dfe87a910922e1c029810509f974c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francesco=20Borz=C3=AC?= Date: Fri, 15 Oct 2021 11:46:41 +0200 Subject: [PATCH] fix(PlayerMethods.h): AC build (#4) --- PlayerMethods.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/PlayerMethods.h b/PlayerMethods.h index f2c1998..e60006c 100644 --- a/PlayerMethods.h +++ b/PlayerMethods.h @@ -3076,14 +3076,11 @@ namespace LuaPlayer { std::string text = Eluna::CHECKVAL(L, 2); uint32 lang = Eluna::CHECKVAL(L, 3); -#ifdef TRINITY - Player* receiver = Eluna::CHECKOBJ(L, 4); -#else - ObjectGuid guid = Eluna::CHECKVAL(L, 4); -#endif #if defined(TRINITY) || defined(AZEROTHCORE) + Player* receiver = Eluna::CHECKOBJ(L, 4); player->Whisper(text, (Language)lang, receiver); #else + ObjectGuid guid = Eluna::CHECKVAL(L, 4); player->Whisper(text, lang, guid); #endif return 0;