summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/map/mob.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/map/mob.cpp b/src/map/mob.cpp
index 6224b82..49f3d0d 100644
--- a/src/map/mob.cpp
+++ b/src/map/mob.cpp
@@ -2742,9 +2742,7 @@ int mob_damage(dumb_ptr<block_list> src, dumb_ptr<mob_data> md, int damage,
// maximum numerator is hard to predict as it depends on
// config/GM settings. In future, rares beyond 1:10000
// might be supported and so let's just use 64 bit fractions.
- random_::Fraction<int64_t> f;
- f.num = drop_info.p.num;
- f.den = 10000;
+ random_::Fraction<int64_t> f { drop_info.p.num, 10000 };
if (sd && battle_config.drops_by_luk > 0)
{