mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 02:11:30 +00:00
Fix for spell books on newer clients not playing well with the tricksy new deblob code
This commit is contained in:
parent
7b85b09f24
commit
7cef4d8fe9
@ -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
|
||||
|
||||
@ -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]);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user