summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/emap/party.c14
1 files 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...