summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-08-14 11:11:22 -0400
committerJesse Luehrs <doy@tozt.net>2014-08-14 11:11:22 -0400
commit13dc9f5e1b2d400509a49a2584fd6e6426564a74 (patch)
tree10269f816a321629a60b0a5406626394be4c6083
parent4c8a8a3ce8ae2c28764f460538f93bf409118a9a (diff)
downloadcrawl-ref-13dc9f5e1b2d400509a49a2584fd6e6426564a74.tar.gz
crawl-ref-13dc9f5e1b2d400509a49a2584fd6e6426564a74.zip
no reason to be passing this in here
-rw-r--r--crawl-ref/source/items.cc8
1 files 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()