Core/Units: initialize stat multipliers with 1.0
This commit is contained in:
1 parent
2d1bb02f45
commit
93743b4ae8
1 file changed
+2
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user