diff options
-rw-r--r-- | src/map/mail.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/mail.c b/src/map/mail.c index 0f03ddd5c..1b9ebb11a 100644 --- a/src/map/mail.c +++ b/src/map/mail.c @@ -87,7 +87,7 @@ unsigned char mail_setitem(struct map_session_data *sd, int idx, int amount) idx -= 2; mail_removeitem(sd, 0); - if( idx < 0 || idx > MAX_INVENTORY ) + if( idx < 0 || idx >= MAX_INVENTORY ) return 1; if( amount < 0 || amount > sd->status.inventory[idx].amount ) return 1; |