aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-02-16 20:10:40 -0600
committermegamage <none@none>2009-02-16 20:10:40 -0600
commit2156fec0d2b0958535495c9edc7d30e2b8e95da5 (patch)
tree678a98310c1a145fd429816535227a17f9255100 /src
parent319f70fb7612f2b25943b7f823da16eb80cde1a3 (diff)
[7284] Avoid 2 times skill value request. Author: VladimirMangos
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/SpellEffects.cpp4
-rw-r--r--src/shared/revision_nr.h2
2 files changed, 2 insertions, 4 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);
}
}
diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h
index e87df561a83..783c0af79f5 100644
--- a/src/shared/revision_nr.h
+++ b/src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
- #define REVISION_NR "7283"
+ #define REVISION_NR "7284"
#endif // __REVISION_NR_H__