summaryrefslogtreecommitdiff
path: root/src/map/unit.c
diff options
context:
space:
mode:
authorFlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-01-22 09:37:47 +0000
committerFlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-01-22 09:37:47 +0000
commit7928947b09b3e7b7f317379d16f9b47299d26cee (patch)
treef11a38cba1034265f427273cbf6196b948bb8a46 /src/map/unit.c
parente5b1b4c350134f4304a9d3b4858f99ecf235b31f (diff)
downloadhercules-7928947b09b3e7b7f317379d16f9b47299d26cee.tar.gz
hercules-7928947b09b3e7b7f317379d16f9b47299d26cee.tar.bz2
hercules-7928947b09b3e7b7f317379d16f9b47299d26cee.tar.xz
hercules-7928947b09b3e7b7f317379d16f9b47299d26cee.zip
* Changed val4 of SC_BLADESTOP from a block_list pointer to an id. (64bit portability issue and potential dangling pointer crash)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13471 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/unit.c')
-rw-r--r--src/map/unit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/unit.c b/src/map/unit.c
index 787b25765..f79a16664 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -855,7 +855,7 @@ int unit_skilluse_id2(struct block_list *src, int target_id, short skill_num, sh
{ //Check for skills that auto-select target
case MO_CHAINCOMBO:
if (sc && sc->data[SC_BLADESTOP]){
- if ((target=(struct block_list *)sc->data[SC_BLADESTOP]->val4) == NULL)
+ if ((target=map_id2bl(sc->data[SC_BLADESTOP]->val4)) == NULL)
return 0;
}
break;