From 5f8b46c05a7d4970d9fcb30a29ddc3a5489b11a1 Mon Sep 17 00:00:00 2001 From: zephyrus Date: Fri, 7 Mar 2008 20:40:59 +0000 Subject: - Fixed a possible crash bug on mail system. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12320 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/mail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/mail.c') 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; -- cgit v1.2.3-60-g2f50