From 8c5eb409e496fe4d2ebc5d2669be868ef2b205a5 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 28 Sep 2020 01:11:32 -0300 Subject: Do not attempt to use this. I'm doing a noob mistake here and need help u.u --- src/emap/party.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/emap/party.c b/src/emap/party.c index 482fbd6..c0a303c 100644 --- a/src/emap/party.c +++ b/src/emap/party.c @@ -3,6 +3,7 @@ #include "common/hercules.h" #include "common/HPMi.h" +#include "common/mmo.h" #include "common/nullpo.h" #include "common/timer.h" #include "common/socket.h" // last_tick @@ -35,9 +36,18 @@ int eparty_exp_share(struct party_data **p, struct block_list **src, unsigned in if( (sd[c] = (*p)->data[i].sd) == NULL || sd[c]->bl.m != (*src)->m || pc_isdead(sd[c]) || pc_isidle(sd[c]) ) continue; c++; - lvl += sd[c]->status.base_level; // XXX + /* + if (sd[c]->status.base_level == NULL) { + ShowDebug("ERROR, NULL LEVEL FOR PARTY MEMBER"); + } + ShowDebug("C is %u, LVL is %u, TLVL is %d\n", c, lvl, sd[c]->status.base_level); + */ + lvl += (unsigned int)(sd[c]->status.base_level); // XXX } - if (c < 1) + + ShowDebug("\nC is %u, LVL is %u\n", c, lvl); + + if (c < 1 || lvl < 1) return 0; // We don't care for pointers... -- cgit v1.2.3-70-g09d2