Address sending bogus spell effect icon data to the client in the Spawn Info packet.
This commit is contained in:
parent
77971f36a2
commit
e79cffd658
@ -139,6 +139,11 @@ void Entity::DeleteSpellEffects(bool removeClient)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
GetInfoStruct()->spell_effects[i].spell_id = 0xFFFFFFFF;
|
GetInfoStruct()->spell_effects[i].spell_id = 0xFFFFFFFF;
|
||||||
|
GetInfoStruct()->spell_effects[i].icon = 0;
|
||||||
|
GetInfoStruct()->spell_effects[i].icon_backdrop = 0;
|
||||||
|
GetInfoStruct()->spell_effects[i].tier = 0;
|
||||||
|
GetInfoStruct()->spell_effects[i].total_time = 0.0f;
|
||||||
|
GetInfoStruct()->spell_effects[i].expire_timestamp = 0;
|
||||||
GetInfoStruct()->spell_effects[i].spell = nullptr;
|
GetInfoStruct()->spell_effects[i].spell = nullptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1072,7 +1072,12 @@ struct InfoStruct{
|
|||||||
|
|
||||||
maintained_effects[i].spell = nullptr;
|
maintained_effects[i].spell = nullptr;
|
||||||
}
|
}
|
||||||
|
spell_effects[i].icon = 0;
|
||||||
spell_effects[i].spell_id = 0xFFFFFFFF;
|
spell_effects[i].spell_id = 0xFFFFFFFF;
|
||||||
|
spell_effects[i].icon_backdrop = 0;
|
||||||
|
spell_effects[i].tier = 0;
|
||||||
|
spell_effects[i].total_time = 0.0f;
|
||||||
|
spell_effects[i].expire_timestamp = 0;
|
||||||
spell_effects[i].spell = nullptr;
|
spell_effects[i].spell = nullptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3286,6 +3286,11 @@ PlayerInfo::PlayerInfo(Player* in_player){
|
|||||||
info_struct->maintained_effects[i].spell = nullptr;
|
info_struct->maintained_effects[i].spell = nullptr;
|
||||||
}
|
}
|
||||||
info_struct->spell_effects[i].spell_id = 0xFFFFFFFF;
|
info_struct->spell_effects[i].spell_id = 0xFFFFFFFF;
|
||||||
|
info_struct->spell_effects[i].icon = 0;
|
||||||
|
info_struct->spell_effects[i].icon_backdrop = 0;
|
||||||
|
info_struct->spell_effects[i].tier = 0;
|
||||||
|
info_struct->spell_effects[i].total_time = 0.0f;
|
||||||
|
info_struct->spell_effects[i].expire_timestamp = 0;
|
||||||
info_struct->spell_effects[i].spell = nullptr;
|
info_struct->spell_effects[i].spell = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user