Merge pull request #358 from Winfidonarleyan/db

chore(Misc): make AzerothCore new api support
This commit is contained in:
Rochet2
2021-06-22 12:44:09 +03:00
committed by GitHub
6 changed files with 40 additions and 61 deletions

View File

@@ -2132,10 +2132,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)