summaryrefslogtreecommitdiff
path: root/src/char_sql/int_party.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-07 13:19:12 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-07 13:19:12 +0000
commit32d5d6568057bf8a832e2c8566f3e4147544063b (patch)
tree30b074e51a8b4ca4b4274c3e95373d3cdaccb893 /src/char_sql/int_party.c
parentfda081264f919912287ce1b0cd2ef4c008912d25 (diff)
downloadhercules-32d5d6568057bf8a832e2c8566f3e4147544063b.tar.gz
hercules-32d5d6568057bf8a832e2c8566f3e4147544063b.tar.bz2
hercules-32d5d6568057bf8a832e2c8566f3e4147544063b.tar.xz
hercules-32d5d6568057bf8a832e2c8566f3e4147544063b.zip
- Removed char_nick2id from char-sql server as it's no longer needed.
- Fixed quitting the map server not properly saving the storage before deleting it. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7030 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char_sql/int_party.c')
-rw-r--r--src/char_sql/int_party.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/char_sql/int_party.c b/src/char_sql/int_party.c
index 2960fe30d..f54ddfe20 100644
--- a/src/char_sql/int_party.c
+++ b/src/char_sql/int_party.c
@@ -291,10 +291,9 @@ int party_check_exp_share(struct party *p)
if((dudes/1000 >= 2) && (dudes%1000 == 3) && maxlv-minlv>party_share_level)
{
int pl1=0,pl2=0,pl3=0;
- pl1=char_nick2id(p->member[oi[0]].name);
- pl2=char_nick2id(p->member[oi[1]].name);
- pl3=char_nick2id(p->member[oi[2]].name);
- ShowDebug("PARTY: group of 3 Id1 %d lv %d name %s Id2 %d lv %d name %s Id3 %d lv %d name %s\n",pl1,p->member[oi[0]].lv,p->member[oi[0]].name,pl2,p->member[oi[1]].lv,p->member[oi[1]].name,pl3,p->member[oi[2]].lv,p->member[oi[2]].name);
+ pl1=p->member[oi[0]].char_id;
+ pl2=p->member[oi[1]].char_id;
+ pl3=p->member[oi[2]].char_id;
if (char_married(pl1,pl2) && char_child(pl1,pl3))
return 1;
if (char_married(pl1,pl3) && char_child(pl1,pl2))