Core/Units: initialize stat multipliers with 1.0

This commit is contained in:
Ovahlord committed 2026-06-10 13:32:49 +02:00
1 parent 2d1bb02f45
commit 93743b4ae8
1 file changed
+2
+2
View File
@@ -26,6 +26,8 @@ Stats::~Stats() = default;
Stats::Stats(Unit* owner) : _owner(owner), _baseStats({ }), _baseStatModifiers({ }), _basePctMultipliers({ }),
_totalModifiers({ }), _totalPctMultipliers({ })
{
_basePctMultipliers.fill(1.0);
_totalModifiers.fill(1.0);
}
/// Returns the unmodified base value of the specified stat.