Browse Source

Resolved party bound item check (fixes #1874)
* Resolved a potential map-server crash.
* If a party bound item is attempted to be removed because the player was offline during party destruction, delete the item without recalculating the status.
Thanks to @Tokeiburu!

aleos89 8 years ago
parent
commit
6de7aa88e8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/map/intif.c

+ 1 - 1
src/map/intif.c

@@ -3213,7 +3213,7 @@ static bool intif_parse_StorageReceived(int fd)
 			if (sd->status.party_id == 0 && (j = pc_bound_chk(sd, BOUND_PARTY, idxlist))) { // Party was deleted while character offline
 				int i;
 				for (i = 0; i < j; i++)
-					pc_delitem(sd, idxlist[i], sd->inventory.u.items_inventory[idxlist[i]].amount, 0, 1, LOG_TYPE_OTHER);
+					pc_delitem(sd, idxlist[i], sd->inventory.u.items_inventory[idxlist[i]].amount, 4, 1, LOG_TYPE_OTHER);
 			}
 #endif
 			//Set here because we need the inventory data for weapon sprite parsing.