Fix for client not scribing spells (thanks Secrets!)

This commit is contained in:
Uleat 2019-01-27 20:19:51 -05:00
parent 036e4739ae
commit c8645475b9

View File

@ -2642,7 +2642,7 @@ bool Client::CheckAccess(int16 iDBLevel, int16 iDefaultLevel) {
void Client::MemorizeSpell(uint32 slot,uint32 spellid,uint32 scribing){
if (slot < 0 || slot >= EQEmu::spells::DynamicLookup(ClientVersion(), GetGM())->SpellbookSize)
return;
if (spellid < 3 || spellid > EQEmu::spells::DynamicLookup(ClientVersion(), GetGM())->SpellIdMax)
if ((spellid < 3 || spellid > EQEmu::spells::DynamicLookup(ClientVersion(), GetGM())->SpellIdMax) && spellid != 0xFFFFFFFF)
return;
auto outapp = new EQApplicationPacket(OP_MemorizeSpell, sizeof(MemorizeSpell_Struct));