summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-27 07:15:37 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-27 07:15:37 +0000
commita002f27441e428dadaceb5fa28d260140bc1a66c (patch)
tree58a7006b38f913f12b58c8661b5652c84af57018
parent14e7fda9198748e9952b2e9cef9289165ee45022 (diff)
downloadcrawl-ref-a002f27441e428dadaceb5fa28d260140bc1a66c.tar.gz
crawl-ref-a002f27441e428dadaceb5fa28d260140bc1a66c.zip
[1820931] Fixed wizmode &o deck bug (doy).
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2612 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r--crawl-ref/source/debug.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/crawl-ref/source/debug.cc b/crawl-ref/source/debug.cc
index ec4bfd62c0..bf4beb8a9c 100644
--- a/crawl-ref/source/debug.cc
+++ b/crawl-ref/source/debug.cc
@@ -806,10 +806,12 @@ static void deck_from_specs(const char* _specs, item_def &item)
for (int i = 0; types[i] != NUM_MISCELLANY; i++)
{
item.sub_type = types[i];
-
+ item.plus = 1;
+ init_deck(item);
// Remove "plain " from front
std::string name = item.name(DESC_PLAIN).substr(6);
-
+ item.props.clear();
+
if (name.find(type_str) != std::string::npos)
break;
}