removed all C-style casts

This commit is contained in:
2024-07-18 17:56:00 -04:00
parent 8f00e903e8
commit 1a9c04ad5a
36 changed files with 212 additions and 92 deletions

View File

@ -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());
}