summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/artefact.cc
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2009-06-26 00:28:00 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2009-06-26 00:28:00 +0000
commitd8c8e320239ed508108825e77c1a02dd600c9b76 (patch)
treef636380a8cafb052f2166243b37f7637f0da62e2 /crawl-ref/source/artefact.cc
parentb791456793c967f1c484f0e3b726aadde102fc8a (diff)
downloadcrawl-ref-d8c8e320239ed508108825e77c1a02dd600c9b76.tar.gz
crawl-ref-d8c8e320239ed508108825e77c1a02dd600c9b76.zip
Oops, unrandarts weren't having their properties properly set.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10045 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/artefact.cc')
-rw-r--r--crawl-ref/source/artefact.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/artefact.cc b/crawl-ref/source/artefact.cc
index 76383f05c6..5fd86bab22 100644
--- a/crawl-ref/source/artefact.cc
+++ b/crawl-ref/source/artefact.cc
@@ -1936,6 +1936,8 @@ bool make_item_unrandart( item_def &item, int unrand_index )
ASSERT(unrand_index > UNRAND_START);
ASSERT(unrand_index < (UNRAND_START + NO_UNRANDARTS));
+ item.special = unrand_index;
+
if (!item.props.exists( KNOWN_PROPS_KEY ))
{
item.props[KNOWN_PROPS_KEY].new_vector(SV_BOOL).resize(ART_PROPERTIES);
@@ -1955,7 +1957,6 @@ bool make_item_unrandart( item_def &item, int unrand_index )
item.flags |= ISFLAG_UNRANDART;
_init_artefact_properties(item);
- item.special = unrand_index;
if (unrand->prpty[ARTP_BRAND] != 0)
do_curse_item( item );