summaryrefslogtreecommitdiff
path: root/src/map/party.c
diff options
context:
space:
mode:
authorhemagx <hemagx2@gmail.com>2015-12-26 11:17:14 +0200
committerHaru <haru@dotalux.com>2016-01-06 15:09:53 +0100
commit1249dc22081a0be982489aae8f18e1658e0cba95 (patch)
tree1ad83ad0331ac97c2d5adadab8d6d5c7bfecc884 /src/map/party.c
parentb69f7b8a5755a54df963c18ca2cdef530f05658b (diff)
downloadhercules-1249dc22081a0be982489aae8f18e1658e0cba95.tar.gz
hercules-1249dc22081a0be982489aae8f18e1658e0cba95.tar.bz2
hercules-1249dc22081a0be982489aae8f18e1658e0cba95.tar.xz
hercules-1249dc22081a0be982489aae8f18e1658e0cba95.zip
Change all TBL_MOB to struct mob_data as per strly guidelines
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/party.c')
-rw-r--r--src/map/party.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/party.c b/src/map/party.c
index a1f315c54..7d44a61c5 100644
--- a/src/map/party.c
+++ b/src/map/party.c
@@ -955,8 +955,8 @@ int party_exp_share(struct party_data* p, struct block_list* src, unsigned int b
for (i = 0; i < c; i++) {
#ifdef RENEWAL_EXP
- if( !(src && src->type == BL_MOB && ((TBL_MOB*)src)->db->mexp) ){
- struct mob_data *md = (TBL_MOB*)src;
+ if (!(src != NULL && src->type == BL_MOB && ((struct mob_data *)src)->db->mexp)) {
+ struct mob_data *md = (struct mob_data *)src;
int rate = pc->level_penalty_mod(md->level - (sd[i])->status.base_level, md->status.race, md->status.mode, 1);
base_exp = (unsigned int)cap_value(base_exp_bonus * rate / 100, 1, UINT_MAX);