summaryrefslogtreecommitdiff
path: root/src/map/battle.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/battle.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/battle.c')
-rw-r--r--src/map/battle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index fdbcffa07..cb84d3044 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -223,7 +223,7 @@ int battle_damage(struct block_list *src,struct block_list *target,int damage, i
sc->data[SC_GRAVITATION].val3 == BCT_SELF) {
struct skill_unit_group *sg = (struct skill_unit_group *)sc->data[SC_GRAVITATION].val4;
if (sg) {
- skill_delunitgroup(sg);
+ skill_delunitgroup(target,sg);
sc->data[SC_GRAVITATION].val4 = 0;
status_change_end(target, SC_GRAVITATION, -1);
}
@@ -404,7 +404,7 @@ int battle_calc_damage(struct block_list *src,struct block_list *bl,int damage,i
struct skill_unit_group *group = (struct skill_unit_group *)sc->data[SC_SAFETYWALL].val3;
if (group) {
if (--group->val2<=0)
- skill_delunitgroup(group);
+ skill_delunitgroup(NULL,group);
return 0;
} else {
status_change_end(bl,SC_SAFETYWALL,-1);