Replace some PQuery/PExecute by more simple Query/Execute
Original patch by hunuza, extended to whole code Closses issue 1446 --HG-- branch : trunk
This commit is contained in:
@@ -78,7 +78,7 @@ void CreatureGroupManager::LoadCreatureFormations()
|
||||
CreatureGroupMap.clear();
|
||||
|
||||
//Check Integrity of the table
|
||||
QueryResult_AutoPtr result = WorldDatabase.PQuery("SELECT MAX(leaderGUID) FROM creature_formations");
|
||||
QueryResult_AutoPtr result = WorldDatabase.Query("SELECT MAX(leaderGUID) FROM creature_formations");
|
||||
|
||||
if (!result)
|
||||
{
|
||||
@@ -87,7 +87,7 @@ void CreatureGroupManager::LoadCreatureFormations()
|
||||
}
|
||||
|
||||
//Get group data
|
||||
result = WorldDatabase.PQuery("SELECT leaderGUID, memberGUID, dist, angle, groupAI FROM creature_formations ORDER BY leaderGUID");
|
||||
result = WorldDatabase.Query("SELECT leaderGUID, memberGUID, dist, angle, groupAI FROM creature_formations ORDER BY leaderGUID");
|
||||
|
||||
if (!result)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user