summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/itemprop.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-20 00:57:48 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-20 00:57:48 +0000
commitfb2de3b69218f690d6e3fe70da95b6d895dc9209 (patch)
tree3af969101fc67a3fbf38c11b28d2b990b5f290a8 /crawl-ref/source/itemprop.cc
parent488e5fd789582bc4a9c82f11abf81fde83e43631 (diff)
downloadcrawl-ref-fb2de3b69218f690d6e3fe70da95b6d895dc9209.tar.gz
crawl-ref-fb2de3b69218f690d6e3fe70da95b6d895dc9209.zip
Add a missing break statement to fix unID'd scroll of recharging enchanting
armour instead... oops! git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4395 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/itemprop.cc')
-rw-r--r--crawl-ref/source/itemprop.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/itemprop.cc b/crawl-ref/source/itemprop.cc
index 11229f3b20..e1b2388b4c 100644
--- a/crawl-ref/source/itemprop.cc
+++ b/crawl-ref/source/itemprop.cc
@@ -1333,8 +1333,8 @@ bool is_enchantable_weapon(const item_def &wpn, bool uncurse)
}
// Nor can highly enchanted items (missiles only have one stat)
- if ( wpn.plus >= 9 ||
- (wpn.base_type == OBJ_WEAPONS && wpn.plus2 >= 9) )
+ if ( wpn.plus >= 9
+ || wpn.base_type == OBJ_WEAPONS && wpn.plus2 >= 9 )
{
return (uncurse && item_cursed( wpn )); // ?EW may uncurse items
}