Call _SaveTalents along side of _SaveSpells in Player::resetTalents.
Please leave feedback on how this affects your character_spell duplicate entry errors. --HG-- branch : trunk
This commit is contained in:
@@ -4072,6 +4072,7 @@ bool Player::resetTalents(bool no_cost)
|
||||
}
|
||||
|
||||
SQLTransaction trans = CharacterDatabase.BeginTransaction();
|
||||
_SaveTalents(trans);
|
||||
_SaveSpells(trans);
|
||||
CharacterDatabase.CommitTransaction(trans);
|
||||
|
||||
@@ -18145,7 +18146,6 @@ void Player::_SaveSpells(SQLTransaction& trans)
|
||||
itr->second->state = PLAYERSPELL_UNCHANGED;
|
||||
++itr;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user