diff options
| author | megamage <none@none> | 2009-02-16 20:10:40 -0600 |
|---|---|---|
| committer | megamage <none@none> | 2009-02-16 20:10:40 -0600 |
| commit | 2156fec0d2b0958535495c9edc7d30e2b8e95da5 (patch) | |
| tree | 678a98310c1a145fd429816535227a17f9255100 /src/game | |
| parent | 319f70fb7612f2b25943b7f823da16eb80cde1a3 (diff) | |
[7284] Avoid 2 times skill value request. Author: VladimirMangos
--HG--
branch : trunk
Diffstat (limited to 'src/game')
| -rw-r--r-- | src/game/SpellEffects.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 0e72e541fe4..3a33532d9f5 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -3137,8 +3137,7 @@ void Spell::EffectOpenLock(uint32 /*i*/) } // update skill if really known - uint32 SkillValue = player->GetPureSkillValue(SkillId); - if(SkillValue) // non only item base skill + if(uint32 SkillValue = player->GetPureSkillValue(SkillId)) { if(gameObjTarget) { @@ -3150,7 +3149,6 @@ void Spell::EffectOpenLock(uint32 /*i*/) else if(itemTarget) { // Do one skill-up - uint32 SkillValue = player->GetPureSkillValue(SkillId); player->UpdateGatherSkill(SkillId, SkillValue, reqSkillValue); } } |
