diff options
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r-- | crawl-ref/source/item_use.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc index ea48262cd1..c89044ce54 100644 --- a/crawl-ref/source/item_use.cc +++ b/crawl-ref/source/item_use.cc @@ -2757,7 +2757,8 @@ void drink(void) const bool dangerous = player_in_a_dangerous_place() && (you.experience_level > 1); - if (potion_effect( you.inv[item_slot].sub_type, 40 )) + if (potion_effect(static_cast<potion_type>(you.inv[item_slot].sub_type), + 40)) { set_ident_flags( you.inv[item_slot], ISFLAG_IDENT_MASK ); @@ -2786,7 +2787,7 @@ bool drink_fountain(void) { bool gone_dry = false; int temp_rand; // for probability determinations {dlb} - int fountain_effect = POT_WATER; // for fountain effects {dlb} + potion_type fountain_effect = POT_WATER; // for fountain effects {dlb} switch (grd[you.x_pos][you.y_pos]) { |