From 2074daf065b64d296cd29566ab4c0bea3e29f9eb Mon Sep 17 00:00:00 2001 From: 55Honey <71938210+55Honey@users.noreply.github.com> Date: Thu, 11 Mar 2021 20:58:14 +0100 Subject: [PATCH] Dont change the whole block. just the required line. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Francesco Borzì --- GlobalMethods.h | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/GlobalMethods.h b/GlobalMethods.h index 0c1beff..3ee9fbd 100644 --- a/GlobalMethods.h +++ b/GlobalMethods.h @@ -2158,19 +2158,16 @@ namespace LuaGlobalFunctions #endif draft.AddItem(item); + + if (mailGUID <= 0) + { #if defined AZEROTHCORE - if (mailGUID <= 0) - { mailGUID = item->GetGUIDLow(); - Eluna::Push(L, mailGUID); - } #elif defined TRINITY - if (mailGUID <= 0) - { mailGUID = item->GetGUID(); +#endif Eluna::Push(L, mailGUID); } -#endif ++addedItems; } }