summaryrefslogtreecommitdiff
path: root/src/map/unit.c
diff options
context:
space:
mode:
authorai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-11-24 23:31:14 +0000
committerai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-11-24 23:31:14 +0000
commitc4b3fec1c9f33f607f9c07d4a65dbdd96c995e8d (patch)
tree64a8ae2418b090e0730bb3800820d2e405970827 /src/map/unit.c
parent7247e02433c4257eec62c43e7e478c7eb3776b1d (diff)
downloadhercules-c4b3fec1c9f33f607f9c07d4a65dbdd96c995e8d.tar.gz
hercules-c4b3fec1c9f33f607f9c07d4a65dbdd96c995e8d.tar.bz2
hercules-c4b3fec1c9f33f607f9c07d4a65dbdd96c995e8d.tar.xz
hercules-c4b3fec1c9f33f607f9c07d4a65dbdd96c995e8d.zip
* Fixed calls to pc_delautobonus assuming map_session_data::autobonus2 and map_session_data::autobonus3 arrays having the same size as map_session_data::autobonus (since r13915).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14497 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/unit.c')
-rw-r--r--src/map/unit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/unit.c b/src/map/unit.c
index 05c0bcb16..65267ea7f 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -2053,8 +2053,8 @@ int unit_free(struct block_list *bl, int clrtype)
pc_delinvincibletimer(sd);
pc_delautobonus(sd,sd->autobonus,ARRAYLENGTH(sd->autobonus),false);
- pc_delautobonus(sd,sd->autobonus2,ARRAYLENGTH(sd->autobonus),false);
- pc_delautobonus(sd,sd->autobonus3,ARRAYLENGTH(sd->autobonus),false);
+ pc_delautobonus(sd,sd->autobonus2,ARRAYLENGTH(sd->autobonus2),false);
+ pc_delautobonus(sd,sd->autobonus3,ARRAYLENGTH(sd->autobonus3),false);
if( sd->followtimer != -1 )
pc_stop_following(sd);