mirror of
https://github.com/mangosfour/server.git
synced 2025-12-27 01:37:04 +00:00
[9228] Speedup groups store and other code work.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
4995a6d298
commit
4178d5bb6a
7 changed files with 74 additions and 91 deletions
|
|
@ -89,7 +89,7 @@ void LoadSkillDiscoveryTable()
|
|||
SpellEntry const* reqSpellEntry = sSpellStore.LookupEntry(reqSkillOrSpell);
|
||||
if (!reqSpellEntry)
|
||||
{
|
||||
if(reportedReqSpells.count(reqSkillOrSpell)==0)
|
||||
if (reportedReqSpells.find(reqSkillOrSpell) == reportedReqSpells.end())
|
||||
{
|
||||
sLog.outErrorDb("Spell (ID: %u) have not existed spell (ID: %i) in `reqSpell` field in `skill_discovery_template` table",spellId,reqSkillOrSpell);
|
||||
reportedReqSpells.insert(reqSkillOrSpell);
|
||||
|
|
@ -102,7 +102,7 @@ void LoadSkillDiscoveryTable()
|
|||
// explicit discovery ability
|
||||
!IsExplicitDiscoverySpell(reqSpellEntry))
|
||||
{
|
||||
if (reportedReqSpells.count(reqSkillOrSpell)==0)
|
||||
if (reportedReqSpells.find(reqSkillOrSpell) == reportedReqSpells.end())
|
||||
{
|
||||
sLog.outErrorDb("Spell (ID: %u) not have MECHANIC_DISCOVERY (28) value in Mechanic field in spell.dbc"
|
||||
" and not 100%% chance random discovery ability but listed for spellId %u (and maybe more) in `skill_discovery_template` table",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue