Ticket #115: UFLoadSpells.diff

File UFLoadSpells.diff, 1.1 KB (added by ptarp, 11 years ago)

Code fix

  • common/patches/Underfoot.cpp

    old new  
    30163016        SETUP_DIRECT_DECODE(LoadSpellSet_Struct, structs::LoadSpellSet_Struct); 
    30173017 
    30183018        for(unsigned int i = 0; i < MAX_PP_MEMSPELL; ++i) 
     3019                if(eq->spell[i]==0) 
     3020                        emu->spell[i] = 0xFFFFFFFF; 
     3021                else 
    30193022                emu->spell[i] = eq->spell[i]; 
    30203023 
    30213024        FINISH_DIRECT_DECODE(); 
  • common/patches/Underfoot_structs.h

    old new  
    38483848}; 
    38493849 
    38503850struct LoadSpellSet_Struct { 
    3851       uint32  spell[MAX_PP_MEMSPELL];      // 0xFFFFFFFF if no action, slot number if to unmem starting at 0 
    3852       uint32 unknown;   //there seems to be an extra field in this packet... 
     3851      uint8  spell[MAX_PP_MEMSPELL];      // 0 if no action 
     3852      uint16 unknown2;  // is this two more spell gems? 
     3853      uint32 unknown;   // there seems to be an extra field in this packet... 
    38533854}; 
    38543855 
    38553856struct BlockedBuffs_Struct {