From 7d8c845f895fe213b5e463a0638ebdf94f507c0b Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Thu, 9 Oct 2008 20:00:51 +0000 Subject: Don't forget to check whether the item owner is still around --- src/map/pc.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/map/pc.c b/src/map/pc.c index f023806..e3b9357 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -2944,6 +2944,10 @@ can_pick_item_up_from(struct map_session_data *self, int other_id) struct map_session_data *other = map_id2sd(other_id); + /* Other no longer exists? */ + if (!other) + return 1; + /* From our partner? */ if (other && self->status.partner_id == other->status.char_id) return 1; -- cgit v1.2.3-70-g09d2