mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-14 15:41:30 +00:00
Fix Crash introduced in last patch
This commit is contained in:
parent
5865948a8b
commit
5eba112b7a
@ -8599,15 +8599,15 @@ void Client::Handle_OP_ItemVerifyRequest(const EQApplicationPacket *app)
|
|||||||
(IsAmnesiad() && IsDiscipline(spell_id)) ||
|
(IsAmnesiad() && IsDiscipline(spell_id)) ||
|
||||||
(IsDetrimentalSpell(spell_id) && !zone->CanDoCombat()) ||
|
(IsDetrimentalSpell(spell_id) && !zone->CanDoCombat()) ||
|
||||||
(inst->IsScaling() && inst->GetExp() <= 0) // charms don't have spells when less than 0
|
(inst->IsScaling() && inst->GetExp() <= 0) // charms don't have spells when less than 0
|
||||||
)
|
|
||||||
)
|
)
|
||||||
|
)
|
||||||
{
|
{
|
||||||
SendSpellBarEnable(spell_id);
|
SendSpellBarEnable(spell_id);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Modern clients don't require pet targeted for item clicks that are ST_Pet
|
// Modern clients don't require pet targeted for item clicks that are ST_Pet
|
||||||
if (spells[spell_id].targettype == ST_Pet)
|
if (spell_id > 0 && spells[spell_id].targettype == ST_Pet)
|
||||||
target_id = GetPetID();
|
target_id = GetPetID();
|
||||||
|
|
||||||
Log(Logs::General, Logs::None, "OP ItemVerifyRequest: spell=%i, target=%i, inv=%i", spell_id, target_id, slot_id);
|
Log(Logs::General, Logs::None, "OP ItemVerifyRequest: spell=%i, target=%i, inv=%i", spell_id, target_id, slot_id);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user