Dont change the whole block. just the required line.

Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com>
This commit is contained in:
55Honey
2021-03-11 20:58:14 +01:00
committed by GitHub
parent 9941dc1ba3
commit 2074daf065

View File

@@ -2158,19 +2158,16 @@ namespace LuaGlobalFunctions
#endif #endif
draft.AddItem(item); draft.AddItem(item);
if (mailGUID <= 0)
{
#if defined AZEROTHCORE #if defined AZEROTHCORE
if (mailGUID <= 0)
{
mailGUID = item->GetGUIDLow(); mailGUID = item->GetGUIDLow();
Eluna::Push(L, mailGUID);
}
#elif defined TRINITY #elif defined TRINITY
if (mailGUID <= 0)
{
mailGUID = item->GetGUID(); mailGUID = item->GetGUID();
#endif
Eluna::Push(L, mailGUID); Eluna::Push(L, mailGUID);
} }
#endif
++addedItems; ++addedItems;
} }
} }