Core/Misc: Remove some calls to const_cast

This commit is contained in:
Spp
2013-01-30 08:39:06 +01:00
parent 0281497573
commit fa5dd4bd4e
15 changed files with 43 additions and 40 deletions
+1 -1
View File
@@ -961,7 +961,7 @@ void WorldSession::ReadAddonsInfo(WorldPacket &data)
ByteBuffer addonInfo;
addonInfo.resize(size);
if (uncompress(const_cast<uint8*>(addonInfo.contents()), &uSize, const_cast<uint8*>(data.contents() + pos), data.size() - pos) == Z_OK)
if (uncompress(addonInfo.contents(), &uSize, data.contents() + pos, data.size() - pos) == Z_OK)
{
uint32 addonsCount;
addonInfo >> addonsCount; // addons count