summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-01 02:01:06 +0000
committerLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-01 02:01:06 +0000
commit7ebaca33c87c77af4bee6fbe74e710a0279e1c77 (patch)
tree584b6732189fd4eafc943d69203673164ad75f54 /src/map/pc.c
parentc4703684d2c435e1360f3fe3318b979d90a5c0b4 (diff)
downloadhercules-7ebaca33c87c77af4bee6fbe74e710a0279e1c77.tar.gz
hercules-7ebaca33c87c77af4bee6fbe74e710a0279e1c77.tar.bz2
hercules-7ebaca33c87c77af4bee6fbe74e710a0279e1c77.tar.xz
hercules-7ebaca33c87c77af4bee6fbe74e710a0279e1c77.zip
* Fixed dangling pointer in pc_steal_item (missing lines) causing crash.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6421 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 075ca173a..7d9cee17f 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -2926,6 +2926,8 @@ int pc_steal_item(struct map_session_data *sd,struct block_list *bl)
if(!sd || !bl || bl->type != BL_MOB)
return 0;
+ md = (TBL_MOB *)bl;
+
if(md->state.steal_flag>battle_config.skill_steal_max_tries || status_get_mode(bl)&MD_BOSS || md->master_id ||
(md->class_>=1324 && md->class_<1364) || // prevent stealing from treasure boxes [Valaris]
map[md->bl.m].flag.nomobloot || // check noloot map flag [Lorky]