mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-11 23:42:24 +00:00
Fix memset in QuestReward
This commit is contained in:
parent
ef3cf099b8
commit
ab35f8b842
@ -8405,7 +8405,7 @@ void Client::SendColoredText(uint32 color, std::string message)
|
|||||||
void Client::QuestReward(Mob* target, uint32 copper, uint32 silver, uint32 gold, uint32 platinum, uint32 itemid, uint32 exp, bool faction) {
|
void Client::QuestReward(Mob* target, uint32 copper, uint32 silver, uint32 gold, uint32 platinum, uint32 itemid, uint32 exp, bool faction) {
|
||||||
|
|
||||||
auto outapp = new EQApplicationPacket(OP_Sound, sizeof(QuestReward_Struct));
|
auto outapp = new EQApplicationPacket(OP_Sound, sizeof(QuestReward_Struct));
|
||||||
memset(outapp->pBuffer, 0, sizeof(outapp->pBuffer));
|
memset(outapp->pBuffer, 0, sizeof(QuestReward_Struct));
|
||||||
QuestReward_Struct* qr = (QuestReward_Struct*)outapp->pBuffer;
|
QuestReward_Struct* qr = (QuestReward_Struct*)outapp->pBuffer;
|
||||||
|
|
||||||
qr->mob_id = target->GetID(); // Entity ID for the from mob name
|
qr->mob_id = target->GetID(); // Entity ID for the from mob name
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user