mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Trinity SQLTransaction
Ungroups Trinity from AzerothCore when necessary Replaces SQLTransaction by CharacterDatabaseTransaction
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user