feat(Core/Database): port TrinityCore database API (#5611)
This commit is contained in:
parent
2a2e54d8c5
commit
9ac6fddcae
155 changed files with 5818 additions and 4321 deletions
|
|
@ -39,7 +39,7 @@ void SmartWaypointMgr::LoadFromDB()
|
|||
|
||||
waypoint_map.clear();
|
||||
|
||||
PreparedStatement* stmt = WorldDatabase.GetPreparedStatement(WORLD_SEL_SMARTAI_WP);
|
||||
WorldDatabasePreparedStatement* stmt = WorldDatabase.GetPreparedStatement(WORLD_SEL_SMARTAI_WP);
|
||||
PreparedQueryResult result = WorldDatabase.Query(stmt);
|
||||
|
||||
if (!result)
|
||||
|
|
@ -109,7 +109,7 @@ void SmartAIMgr::LoadSmartAIFromDB()
|
|||
for (uint8 i = 0; i < SMART_SCRIPT_TYPE_MAX; i++)
|
||||
mEventMap[i].clear(); //Drop Existing SmartAI List
|
||||
|
||||
PreparedStatement* stmt = WorldDatabase.GetPreparedStatement(WORLD_SEL_SMART_SCRIPTS);
|
||||
WorldDatabasePreparedStatement* stmt = WorldDatabase.GetPreparedStatement(WORLD_SEL_SMART_SCRIPTS);
|
||||
PreparedQueryResult result = WorldDatabase.Query(stmt);
|
||||
|
||||
if (!result)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue