Replace some PQuery() calls with more simple Query()

This commit is contained in:
hunuza 2008-11-02 23:22:18 +01:00
parent 086dee05cd
commit fa37c291d6
8 changed files with 24 additions and 24 deletions

View file

@ -309,7 +309,7 @@ void WorldSession::HandleCharCreateOpcode( WorldPacket & recv_data )
bool have_same_race = false;
if(!AllowTwoSideAccounts || skipCinematics == 1)
{
QueryResult *result2 = CharacterDatabase.PQuery("SELECT DISTINCT race FROM characters WHERE account = '%u' %s", GetAccountId(),skipCinematics == 1 ? "" : "LIMIT 1");
QueryResult *result2 = CharacterDatabase.Query("SELECT DISTINCT race FROM characters WHERE account = '%u' %s", GetAccountId(),skipCinematics == 1 ? "" : "LIMIT 1");
if(result2)
{
uint32 team_= Player::TeamForRace(race_);