Fix Crash introduced in last patch

This commit is contained in:
Michael Cook (mackal) 2017-05-18 12:57:04 -04:00
parent 5865948a8b
commit 5eba112b7a

View File

@ -8607,7 +8607,7 @@ void Client::Handle_OP_ItemVerifyRequest(const EQApplicationPacket *app)
}
// 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);