|
@@ -2475,7 +2475,11 @@ int8 Player::GetSpellSlot(int32 spell_id){
|
|
for(itr = spells.begin(); itr != spells.end(); itr++){
|
|
for(itr = spells.begin(); itr != spells.end(); itr++){
|
|
spell = *itr;
|
|
spell = *itr;
|
|
if(spell->spell_id == spell_id)
|
|
if(spell->spell_id == spell_id)
|
|
- return spell->slot;
|
|
|
|
|
|
+ {
|
|
|
|
+ int8 slot = spell->slot;
|
|
|
|
+ MSpellsBook.unlock();
|
|
|
|
+ return slot;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
MSpellsBook.unlock();
|
|
MSpellsBook.unlock();
|
|
return 0;
|
|
return 0;
|