mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +00:00
[9218] Fixed check in CMSG_QUEST_POI_QUERY proccessing for max quest amount.
This fix work quest poi for filled quest list and fix unexpected spam about unreaded packet content.
This commit is contained in:
parent
627d74f192
commit
13acbefbbf
2 changed files with 5 additions and 2 deletions
|
|
@ -490,8 +490,11 @@ void WorldSession::HandleQuestPOIQuery(WorldPacket& recv_data)
|
||||||
uint32 count;
|
uint32 count;
|
||||||
recv_data >> count; // quest count, max=25
|
recv_data >> count; // quest count, max=25
|
||||||
|
|
||||||
if(count >= MAX_QUEST_LOG_SIZE)
|
if(count > MAX_QUEST_LOG_SIZE)
|
||||||
|
{
|
||||||
|
recv_data.rpos(recv_data.wpos()); // set to end to avoid warnings spam
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
WorldPacket data(SMSG_QUEST_POI_QUERY_RESPONSE, 4+(4+4)*count);
|
WorldPacket data(SMSG_QUEST_POI_QUERY_RESPONSE, 4+(4+4)*count);
|
||||||
data << uint32(count); // count
|
data << uint32(count); // count
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "9217"
|
#define REVISION_NR "9218"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue