mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +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;
|
||||
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;
|
||||
}
|
||||
|
||||
WorldPacket data(SMSG_QUEST_POI_QUERY_RESPONSE, 4+(4+4)*count);
|
||||
data << uint32(count); // count
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue