mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 01:37:00 +00:00
[12725] Fixed possible crash
This commit is contained in:
parent
b148eb1eaf
commit
ca49ce230d
2 changed files with 3 additions and 3 deletions
|
|
@ -1536,7 +1536,7 @@ void WorldSession::HandleHearthandResurrect(WorldPacket& /*recv_data*/)
|
||||||
|
|
||||||
void WorldSession::HandleRequestHotfix(WorldPacket& recv_data)
|
void WorldSession::HandleRequestHotfix(WorldPacket& recv_data)
|
||||||
{
|
{
|
||||||
uint32 type, count;
|
uint32 type = 0, count = 0;
|
||||||
recv_data >> type;
|
recv_data >> type;
|
||||||
|
|
||||||
count = recv_data.ReadBits(23);
|
count = recv_data.ReadBits(23);
|
||||||
|
|
@ -1547,7 +1547,7 @@ void WorldSession::HandleRequestHotfix(WorldPacket& recv_data)
|
||||||
for (uint32 i = 0; i < count; ++i)
|
for (uint32 i = 0; i < count; ++i)
|
||||||
recv_data.ReadGuidMask<0, 4, 7, 2, 5, 3, 6, 1>(guids[i]);
|
recv_data.ReadGuidMask<0, 4, 7, 2, 5, 3, 6, 1>(guids[i]);
|
||||||
|
|
||||||
uint32 entry;
|
uint32 entry = 0;
|
||||||
for (uint32 i = 0; i < count; ++i)
|
for (uint32 i = 0; i < count; ++i)
|
||||||
{
|
{
|
||||||
recv_data.ReadGuidBytes<5, 6, 7, 0, 1, 3, 4>(guids[i]);
|
recv_data.ReadGuidBytes<5, 6, 7, 0, 1, 3, 4>(guids[i]);
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "12724"
|
#define REVISION_NR "12725"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue