summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/map/chrif.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/map/chrif.c b/src/map/chrif.c
index 0f5221994..cffc24726 100644
--- a/src/map/chrif.c
+++ b/src/map/chrif.c
@@ -890,13 +890,14 @@ int chrif_divorce(int partner_id1, int partner_id2)
/*==========================================
* Divorce players
+ * only used if 'partner_id' is offline
*------------------------------------------*/
int chrif_divorceack(int char_id, int partner_id)
{
struct map_session_data* sd;
int i;
- if (!char_id || !partner_id || (sd = map_charid2sd(partner_id)) == NULL || sd->status.partner_id != char_id)
+ if (!char_id || !partner_id || (sd = map_charid2sd(char_id)) == NULL || sd->status.partner_id != partner_id)
return 0;
// Update Partner info
@@ -907,6 +908,8 @@ int chrif_divorceack(int char_id, int partner_id)
if (sd->status.inventory[i].nameid == WEDDING_RING_M || sd->status.inventory[i].nameid == WEDDING_RING_F)
pc_delitem(sd, i, 1, 0);
+ //TODO: send clif_divorced()
+
return 0;
}
/*==========================================