Core/Loot: "Fix" SMSG_LOOT_RESPONSE

Closes #4768
This commit is contained in:
Gyx
2012-01-12 17:12:01 +00:00
committed by Nay
parent 629694cbad
commit bb35989a7e
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -3173,7 +3173,7 @@ void Player::InitStatsForLevel(bool reapplyMods)
// reset before any aura state sources (health set/aura apply)
SetUInt32Value(UNIT_FIELD_AURASTATE, 0);
UpdateSkillsForLevel ();
UpdateSkillsForLevel();
// set default cast time multiplier
SetFloatValue(UNIT_MOD_CAST_SPEED, 1.0f);
@@ -9000,7 +9000,7 @@ void Player::SendLoot(uint64 guid, LootType loot_type)
// need know merged fishing/corpse loot type for achievements
loot->loot_type = loot_type;
WorldPacket data(SMSG_LOOT_RESPONSE, (9+50)); // we guess size
WorldPacket data(SMSG_LOOT_RESPONSE, 8 + 1 + 50 + 1 + 1); // we guess size
data << uint64(guid);
data << uint8(loot_type);
+1
View File
@@ -816,6 +816,7 @@ ByteBuffer& operator<<(ByteBuffer& b, LootView const& lv)
size_t count_pos = b.wpos(); // pos of item count byte
b << uint8(0); // item count placeholder
b << uint8(0); // 4.x unknown
switch (lv.permission)
{