summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMadCamel <madcamel@gmail.com>2009-04-25 20:14:59 +0000
committerJared Adams <jaxad0127@gmail.com>2009-04-25 14:26:48 -0600
commite443b683ed7e38648b61e4e52d87e681d194a2b3 (patch)
tree64a0bcd6c8831ccb7584e892d06ab0c3c944b79b
parente86bcd984545b3b48ba1ee887e32c15715cfe521 (diff)
downloadtmwa-e443b683ed7e38648b61e4e52d87e681d194a2b3.tar.gz
tmwa-e443b683ed7e38648b61e4e52d87e681d194a2b3.tar.bz2
tmwa-e443b683ed7e38648b61e4e52d87e681d194a2b3.tar.xz
tmwa-e443b683ed7e38648b61e4e52d87e681d194a2b3.zip
Repair drop protection
-rw-r--r--src/map/pc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 71554c8..2ac5ce1 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -2998,7 +2998,10 @@ can_pick_item_up_from(struct map_session_data *self, int other_id)
return 1;
/* From a party member? */
- if (self->status.party_id == other->status.party_id && p && p->item != 0)
+ if (self->status.party_id
+ && self->status.party_id == other->status.party_id
+ && p && p->item != 0
+ )
return 1;
/* From someone who is far away? */