From 5eba112b7aa76622421f21b86f153ff2f47ba92d Mon Sep 17 00:00:00 2001 From: "Michael Cook (mackal)" Date: Thu, 18 May 2017 12:57:04 -0400 Subject: [PATCH] Fix Crash introduced in last patch --- zone/client_packet.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zone/client_packet.cpp b/zone/client_packet.cpp index 12250bdbd..e9fad51c7 100644 --- a/zone/client_packet.cpp +++ b/zone/client_packet.cpp @@ -8599,15 +8599,15 @@ void Client::Handle_OP_ItemVerifyRequest(const EQApplicationPacket *app) (IsAmnesiad() && IsDiscipline(spell_id)) || (IsDetrimentalSpell(spell_id) && !zone->CanDoCombat()) || (inst->IsScaling() && inst->GetExp() <= 0) // charms don't have spells when less than 0 - ) ) + ) { SendSpellBarEnable(spell_id); return; } // 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(); Log(Logs::General, Logs::None, "OP ItemVerifyRequest: spell=%i, target=%i, inv=%i", spell_id, target_id, slot_id);