removed all C-style casts
This commit is contained in:
@ -136,7 +136,8 @@ void level::gen_potions(RNG *rng, std::vector<position_list> &tiles) {
|
||||
pplist.reserve(cnt);
|
||||
|
||||
for (int i = 0; i < cnt; ++i) {
|
||||
pplist.push_back(new_potion((potion_type)rng->rand_under(max_type),
|
||||
pplist.push_back(new_potion(static_cast<potion_type>
|
||||
(rng->rand_under(max_type)),
|
||||
get_rand_pos(rng, tiles)));
|
||||
plist.push_back(pplist[i].get());
|
||||
}
|
||||
|
Reference in New Issue
Block a user