summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells2.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/spells2.cc')
-rw-r--r--crawl-ref/source/spells2.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/crawl-ref/source/spells2.cc b/crawl-ref/source/spells2.cc
index f042b7c674..5bd2c3dbe0 100644
--- a/crawl-ref/source/spells2.cc
+++ b/crawl-ref/source/spells2.cc
@@ -552,9 +552,7 @@ bool brand_weapon(int which_brand, int power)
return false;
}
- char str_pass[ ITEMNAME_SIZE ];
- in_name( wpn, DESC_CAP_YOUR, str_pass );
- strcpy( info, str_pass );
+ strcpy( info, you.inv[wpn].name(DESC_CAP_YOUR).c_str() );
const int wpn_type = get_vorpal_type(you.inv[wpn]);