Core/Misc: Remove some calls to const_cast

This commit is contained in:
Spp committed 2013-01-30 08:39:06 +01:00
1 parent 0281497573
commit fa5dd4bd4e
15 files changed
+43 -40

No files matched your search

+1 -1
View File
@@ -69,7 +69,7 @@ void WorldSession::HandleGMTicketCreateOpcode(WorldPacket& recvData)
dest.resize(decompressedSize);
uLongf realSize = decompressedSize;
if (uncompress(const_cast<uint8*>(dest.contents()), &realSize, const_cast<uint8*>(recvData.contents() + pos), recvData.size() - pos) == Z_OK)
if (uncompress(dest.contents(), &realSize, recvData.contents() + pos, recvData.size() - pos) == Z_OK)
{
dest >> chatLog;
ticket->SetChatLog(times, chatLog);