summaryrefslogtreecommitdiff
path: root/src/map/mail.c
diff options
context:
space:
mode:
authorzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-03-07 20:40:59 +0000
committerzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-03-07 20:40:59 +0000
commit5f8b46c05a7d4970d9fcb30a29ddc3a5489b11a1 (patch)
treed0b1da077660eb365bc51ad2acb68712ea606eb3 /src/map/mail.c
parent2189ac46ef4d04aa5bcf5af3001da45704676e72 (diff)
downloadhercules-5f8b46c05a7d4970d9fcb30a29ddc3a5489b11a1.tar.gz
hercules-5f8b46c05a7d4970d9fcb30a29ddc3a5489b11a1.tar.bz2
hercules-5f8b46c05a7d4970d9fcb30a29ddc3a5489b11a1.tar.xz
hercules-5f8b46c05a7d4970d9fcb30a29ddc3a5489b11a1.zip
- 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
Diffstat (limited to 'src/map/mail.c')
-rw-r--r--src/map/mail.c2
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;