Core/Packets: changed amount storage for aura update packets from vector to array to improve performance
This commit is contained in:
1 parent
961144d82d
commit
2a8fe49a73
3 files changed
+5
-4
No files matched your search
@@ -225,8 +225,9 @@ ByteBuffer& operator<<(ByteBuffer& data, WorldPackets::Spells::AuraDataInfo cons
|
||||
if (auraData.Remaining)
|
||||
data << int32(*auraData.Remaining);
|
||||
|
||||
for (int32 amount : auraData.Points)
|
||||
data << int32(amount);
|
||||
for (uint8 i = 0; i < MAX_SPELL_EFFECTS; ++i)
|
||||
if (auraData.Points[i].is_initialized())
|
||||
data << int32(*auraData.Points[i]);
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user