[7284] Avoid 2 times skill value request.

This commit is contained in:
VladimirMangos 2009-02-15 23:49:43 +03:00
parent 22656b33e3
commit f75f112bfc
2 changed files with 2 additions and 4 deletions

View file

@ -3035,8 +3035,7 @@ void Spell::EffectOpenLock(uint32 /*i*/)
} }
// update skill if really known // update skill if really known
uint32 SkillValue = player->GetPureSkillValue(SkillId); if(uint32 SkillValue = player->GetPureSkillValue(SkillId))
if(SkillValue) // non only item base skill
{ {
if(gameObjTarget) if(gameObjTarget)
{ {
@ -3048,7 +3047,6 @@ void Spell::EffectOpenLock(uint32 /*i*/)
else if(itemTarget) else if(itemTarget)
{ {
// Do one skill-up // Do one skill-up
uint32 SkillValue = player->GetPureSkillValue(SkillId);
player->UpdateGatherSkill(SkillId, SkillValue, reqSkillValue); player->UpdateGatherSkill(SkillId, SkillValue, reqSkillValue);
} }
} }

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "7283" #define REVISION_NR "7284"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__