summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-11 18:45:43 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-11 18:45:43 +0000
commit354a5439cd4f7b4e1454cb37637ce07af279466c (patch)
treede0749dacacf28d5e6b962eb4db40698428a19a1 /src/map/status.c
parentf30f40066e831e4cc0c4326f96d9358554c51791 (diff)
downloadhercules-354a5439cd4f7b4e1454cb37637ce07af279466c.tar.gz
hercules-354a5439cd4f7b4e1454cb37637ce07af279466c.tar.bz2
hercules-354a5439cd4f7b4e1454cb37637ce07af279466c.tar.xz
hercules-354a5439cd4f7b4e1454cb37637ce07af279466c.zip
- Implemented use of ers for skill_unit_groups to reduce memory usage. NEEDS TESTING
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5991 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/status.c b/src/map/status.c
index d708a921c..ffba6e1e5 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -5021,7 +5021,7 @@ int status_change_end( struct block_list* bl , int type,int tid )
struct status_change *dsc;
if(sc->data[type].val2)
{
- skill_delunitgroup((struct skill_unit_group *)sc->data[type].val2);
+ skill_delunitgroup(bl, (struct skill_unit_group *)sc->data[type].val2);
sc->data[type].val2 = 0;
}
if(sc->data[type].val4 && sc->data[type].val4 != BCT_SELF && (dsd=map_id2sd(sc->data[type].val4))){
@@ -5131,7 +5131,7 @@ int status_change_end( struct block_list* bl , int type,int tid )
else if (sc->data[type].val3) { //Clear the group.
struct skill_unit_group *group = (struct skill_unit_group *)sc->data[type].val3;
sc->data[type].val3 = 0;
- skill_delunitgroup(group);
+ skill_delunitgroup(bl, group);
}
break;
case SC_HERMODE: