summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorParadox924X <Paradox924X@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-08-28 16:59:58 +0000
committerParadox924X <Paradox924X@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-08-28 16:59:58 +0000
commit8c99e2802fa920d35514c522180c5164199b321a (patch)
tree448db595b6f66b65ee6efb8d7c7172e8512501ad /src/map
parentf83fd90579f5258ff145f9685499b67c5cd1fc68 (diff)
downloadhercules-8c99e2802fa920d35514c522180c5164199b321a.tar.gz
hercules-8c99e2802fa920d35514c522180c5164199b321a.tar.bz2
hercules-8c99e2802fa920d35514c522180c5164199b321a.tar.xz
hercules-8c99e2802fa920d35514c522180c5164199b321a.zip
Replaced a map_moveblock() call with a call to unit_movepos() to prevent an exploit.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14396 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r--src/map/skill.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 476008bf9..0212516a5 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -7580,7 +7580,7 @@ int skill_unit_onplace_timer (struct skill_unit *src, struct block_list *bl, uns
const struct TimerData* td = tsc->data[type]?get_timer(tsc->data[type]->timer):NULL;
if( td )
sec = DIFF_TICK(td->tick, tick);
- map_moveblock(bl, src->bl.x, src->bl.y, tick);
+ unit_movepos(bl, src->bl.x, src->bl.y, 0, 0);
clif_fixpos(bl);
sg->val2 = bl->id;
}