On Mon, Nov 2, 2015 at 8:39 AM, Josh Stompro <email address hidden> wrote:
> Thanks Bill, I'll add that change also.
>
> I would like to track down some of the other warnings that pop up when
> targeting also, I'm not sure I'll have a chance here though.
>
> There are a few that come up when there are no holdable copies.
>
> I don' t understand why this code even needs to be called at all if
> there are no holdable copies to get the minimum proximity of.
>
Indeed, and choose_nearest_copy() does nothing if no copies are passed.
On Mon, Nov 2, 2015 at 8:39 AM, Josh Stompro <email address hidden> wrote:
> Thanks Bill, I'll add that change also.
>
> I would like to track down some of the other warnings that pop up when
> targeting also, I'm not sure I'll have a chance here though.
>
> There are a few that come up when there are no holdable copies.
>
> I don' t understand why this code even needs to be called at all if
> there are no holdable copies to get the minimum proximity of.
>
Indeed, and choose_ nearest_ copy() does nothing if no copies are passed.
Maybe just:
- } else {
$best = choose_ nearest_ copy($hold, { $min_prox => $$prox_ list{$min_ prox}) });
+ } elsif (defined $min_prox) {
delete(
}