Trinity SQLTransaction

Ungroups Trinity from AzerothCore when necessary
Replaces SQLTransaction by CharacterDatabaseTransaction
This commit is contained in:
RedSkull-666
2020-03-31 19:29:24 +02:00
parent 042629ea61
commit c58135b161
4 changed files with 14 additions and 6 deletions

View File

@@ -2094,7 +2094,9 @@ namespace LuaGlobalFunctions
draft.SetMoney(money);
#endif
#if defined TRINITY || AZEROTHCORE
#if defined TRINITY
CharacterDatabaseTransaction trans = CharacterDatabase.BeginTransaction();
#elif defined AZEROTHCORE
SQLTransaction trans = CharacterDatabase.BeginTransaction();
#endif
uint8 addedItems = 0;