summaryrefslogtreecommitdiff
path: root/src/spells3.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2018-03-25 20:07:30 +0200
committerBardur Arantsson <bardur@scientician.net>2018-03-25 20:07:30 +0200
commita9e8ef4434fd505a4db627d9156919952586e209 (patch)
tree9a5ddc477d54dcc241cef96f0ffa1950fcd02046 /src/spells3.cc
parent7040407bdea291f1c6c0bd0dcca69a475240f93a (diff)
Change k_info to an unordered_map<>
Diffstat (limited to 'src/spells3.cc')
-rw-r--r--src/spells3.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/spells3.cc b/src/spells3.cc
index 58d42cab..d2f09a0e 100644
--- a/src/spells3.cc
+++ b/src/spells3.cc
@@ -2961,7 +2961,7 @@ casting_result udun_drain()
case TV_STAFF:
case TV_WAND:
{
- auto k_ptr = &k_info[o_ptr->k_idx];
+ auto k_ptr = &k_info.at(o_ptr->k_idx);
/* Generate mana */
increase_mana(o_ptr->pval * k_ptr->level * o_ptr->number);