summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dungeon.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/dungeon.cc')
-rw-r--r--crawl-ref/source/dungeon.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/dungeon.cc b/crawl-ref/source/dungeon.cc
index 62a156abca..a3c39b3a6f 100644
--- a/crawl-ref/source/dungeon.cc
+++ b/crawl-ref/source/dungeon.cc
@@ -4301,8 +4301,9 @@ void place_spec_shop( int level_number,
env.shop[i].level = level_number * 2;
- env.shop[i].type = (force_s_type != SHOP_RANDOM) ? force_s_type
- : random2(NUM_SHOPS);
+ env.shop[i].type = static_cast<shop_type>(
+ (force_s_type != SHOP_RANDOM) ? force_s_type
+ : random2(NUM_SHOPS));
if (env.shop[i].type == SHOP_FOOD)
{