Fixed potential map server crash in clif_parse_Mail_setattach (#3609)
This commit is contained in:
parent
04f127fd7c
commit
2140722743
@ -15777,7 +15777,7 @@ void clif_parse_Mail_setattach(int fd, struct map_session_data *sd){
|
||||
|
||||
if( !chrif_isconnected() )
|
||||
return;
|
||||
if (idx < 0 || amount < 0)
|
||||
if (idx < 0 || amount < 0 || idx >= MAX_INVENTORY)
|
||||
return;
|
||||
|
||||
flag = mail_setitem(sd, idx, amount);
|
||||
|
Loading…
x
Reference in New Issue
Block a user