chore(Misc): make AzerothCore new api support

This commit is contained in:
Winfidonarleyan
2021-05-06 01:51:07 +07:00
parent 2962d4fea3
commit dc300fe5cd
5 changed files with 39 additions and 60 deletions

View File

@@ -2116,10 +2116,8 @@ namespace LuaGlobalFunctions
draft.SetMoney(money);
#endif
#if defined TRINITY
#if defined TRINITY || defined AZEROTHCORE
CharacterDatabaseTransaction trans = CharacterDatabase.BeginTransaction();
#elif defined AZEROTHCORE
SQLTransaction trans = CharacterDatabase.BeginTransaction();
#endif
uint8 addedItems = 0;
while (addedItems <= MAX_MAIL_ITEMS && i + 2 <= argAmount)