summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/item_use.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2008-09-18 15:36:03 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2008-09-18 15:36:03 +0000
commit7ace596b4aeb95e5916627979a25e72750c1fb8c (patch)
tree42379c7b251c8b8e4aa2738281a5e62c369faa59 /crawl-ref/source/item_use.cc
parentb3834a6fe13b5041291fc0fb62168728788e2d62 (diff)
downloadcrawl-ref-7ace596b4aeb95e5916627979a25e72750c1fb8c.tar.gz
crawl-ref-7ace596b4aeb95e5916627979a25e72750c1fb8c.zip
Fix Enchant Armour not updating AC: line when enchanting a hide.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6946 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r--crawl-ref/source/item_use.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index 6d149e4d51..80e630bc2d 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -4078,9 +4078,9 @@ bool enchant_armour( int &ac_change, bool quiet, item_def &arm )
arm.name(DESC_CAP_YOUR).c_str());
}
- ac_change = arm.plus;
+ ac_change = property(arm, PARM_AC);
hide2armour(arm);
- ac_change = arm.plus - ac_change;
+ ac_change = property(arm, PARM_AC) - ac_change;
if (is_cursed)
do_uncurse_item( arm );