[7392] Fixed SQL query for storing pending arena points for offline players for PGSQL.

Signed-off-by: ApoC <apoc@nymfe.net>
This commit is contained in:
ApoC 2009-03-06 23:38:55 +01:00
parent 5a8f379a70
commit 4523a47155
2 changed files with 2 additions and 2 deletions

View file

@ -1752,7 +1752,7 @@ void BattleGroundMgr::DistributeArenaPoints()
for (std::map<uint32, uint32>::iterator plr_itr = PlayerPoints.begin(); plr_itr != PlayerPoints.end(); ++plr_itr) for (std::map<uint32, uint32>::iterator plr_itr = PlayerPoints.begin(); plr_itr != PlayerPoints.end(); ++plr_itr)
{ {
//update to database //update to database
CharacterDatabase.PExecute("UPDATE characters SET arena_pending_points = '%u' WHERE `guid` = '%u'", plr_itr->second, plr_itr->first); CharacterDatabase.PExecute("UPDATE characters SET arena_pending_points = '%u' WHERE guid = '%u'", plr_itr->second, plr_itr->first);
//add points if player is online //add points if player is online
Player* pl = objmgr.GetPlayer(plr_itr->first); Player* pl = objmgr.GetPlayer(plr_itr->first);
if (pl) if (pl)

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "7391" #define REVISION_NR "7392"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__