Fix for spell books on newer clients not playing well with the tricksy new deblob code

This commit is contained in:
KimLS 2014-09-23 13:39:05 -07:00
parent 7b85b09f24
commit 7cef4d8fe9
2 changed files with 4 additions and 3 deletions

View File

@ -1081,7 +1081,7 @@ ENCODE(OP_PlayerProfile)
// zeroes for the rest of the spellbook slots
for(uint32 r = 0; r < structs::MAX_PP_SPELLBOOK - MAX_PP_SPELLBOOK; r++)
{
outapp->WriteUInt32(0);
outapp->WriteUInt32(0xFFFFFFFFU);
}
outapp->WriteUInt32(structs::MAX_PP_MEMSPELL); // Memorised spell slots
@ -1093,7 +1093,7 @@ ENCODE(OP_PlayerProfile)
// zeroes for the rest of the slots
for(uint32 r = 0; r < structs::MAX_PP_MEMSPELL - MAX_PP_MEMSPELL; r++)
{
outapp->WriteUInt32(0);
outapp->WriteUInt32(0xFFFFFFFFU);
}
outapp->WriteUInt32(13); // Unknown count

View File

@ -537,7 +537,8 @@ ENCODE(OP_PlayerProfile) {
OUT(WIS);
OUT(face);
// OUT(unknown02264[47]);
OUT_array(spell_book, structs::MAX_PP_SPELLBOOK);
memset(eq->spell_book, 0xFF, sizeof(uint32)* structs::MAX_PP_SPELLBOOK);
OUT_array(spell_book, 480U);
// OUT(unknown4184[128]);
OUT_array(mem_spells, structs::MAX_PP_MEMSPELL);
// OUT(unknown04396[32]);