* revert 5293
--HG-- branch : trunk
This commit is contained in:
@@ -21754,14 +21754,12 @@ void Player::_LoadGlyphs(QueryResult *result)
|
|||||||
|
|
||||||
void Player::_SaveGlyphs()
|
void Player::_SaveGlyphs()
|
||||||
{
|
{
|
||||||
CharacterDatabase.BeginTransaction();
|
|
||||||
CharacterDatabase.PExecute("DELETE FROM character_glyphs WHERE guid='%u'",GetGUIDLow());
|
CharacterDatabase.PExecute("DELETE FROM character_glyphs WHERE guid='%u'",GetGUIDLow());
|
||||||
for (uint8 spec = 0; spec < m_specsCount; ++spec)
|
for (uint8 spec = 0; spec < m_specsCount; ++spec)
|
||||||
{
|
{
|
||||||
CharacterDatabase.PExecute("INSERT INTO character_glyphs VALUES('%u', '%u', '%u', '%u', '%u', '%u', '%u', '%u')",
|
CharacterDatabase.PExecute("INSERT INTO character_glyphs VALUES('%u', '%u', '%u', '%u', '%u', '%u', '%u', '%u')",
|
||||||
GetGUIDLow(), spec, m_Glyphs[spec][0], m_Glyphs[spec][1], m_Glyphs[spec][2], m_Glyphs[spec][3], m_Glyphs[spec][4], m_Glyphs[spec][5]);
|
GetGUIDLow(), spec, m_Glyphs[spec][0], m_Glyphs[spec][1], m_Glyphs[spec][2], m_Glyphs[spec][3], m_Glyphs[spec][4], m_Glyphs[spec][5]);
|
||||||
}
|
}
|
||||||
CharacterDatabase.CommitTransaction();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Player::_LoadTalents(QueryResult *result)
|
void Player::_LoadTalents(QueryResult *result)
|
||||||
|
|||||||
Reference in New Issue
Block a user