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

@@ -740,7 +740,10 @@ namespace LuaItem
*/
int SaveToDB(lua_State* /*L*/, Item* item)
{
#if defined TRINITY || AZEROTHCORE
#if defined TRINITY
CharacterDatabaseTransaction trans = CharacterDatabaseTransaction(nullptr);
item->SaveToDB(trans);
#elif defined AZEROTHCORE
SQLTransaction trans = SQLTransaction(NULL);
item->SaveToDB(trans);
#else