From 13dc9f5e1b2d400509a49a2584fd6e6426564a74 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Thu, 14 Aug 2014 11:11:22 -0400 Subject: no reason to be passing this in here --- crawl-ref/source/items.cc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/crawl-ref/source/items.cc b/crawl-ref/source/items.cc index 2118dccf1e..36c2e63e70 100644 --- a/crawl-ref/source/items.cc +++ b/crawl-ref/source/items.cc @@ -2661,10 +2661,9 @@ static int _autopickup_subtype(const item_def &item) } } -static bool _is_option_autopickup(const item_def &item, string &iname) +static bool _is_option_autopickup(const item_def &item) { - if (iname.empty()) - iname = _autopickup_item_name(item); + string iname = _autopickup_item_name(item); if (item.base_type < NUM_OBJECT_CLASSES) { @@ -2724,8 +2723,7 @@ bool item_needs_autopickup(const item_def &item) if (item.props.exists("needs_autopickup")) return true; - string itemname; - return _is_option_autopickup(item, itemname); + return _is_option_autopickup(item); } bool can_autopickup() -- cgit v1.2.3-54-g00ecf