mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-03 13:01:33 +02:00
Merge pull request #3376 from IvanSavenko/uninitialized_fixes
Fix uninitialized memory access
This commit is contained in:
commit
5fe5d81729
@ -13,14 +13,16 @@
|
||||
|
||||
using namespace Load;
|
||||
|
||||
Progress::Progress(): _progress(std::numeric_limits<Type>::min())
|
||||
{
|
||||
setupSteps(100);
|
||||
}
|
||||
Progress::Progress()
|
||||
: Progress(100)
|
||||
{}
|
||||
|
||||
Progress::Progress(int steps): _progress(std::numeric_limits<Type>::min())
|
||||
Progress::Progress(int steps)
|
||||
: _progress(std::numeric_limits<Type>::min())
|
||||
, _target(std::numeric_limits<Type>::max())
|
||||
, _step(std::numeric_limits<Type>::min())
|
||||
, _maxSteps(steps)
|
||||
{
|
||||
setupSteps(steps);
|
||||
}
|
||||
|
||||
Type Progress::get() const
|
||||
|
@ -33,6 +33,7 @@ Rewardable::Reward::Reward()
|
||||
, heroLevel(0)
|
||||
, manaDiff(0)
|
||||
, manaPercentage(-1)
|
||||
, manaOverflowFactor(0)
|
||||
, movePoints(0)
|
||||
, movePercentage(-1)
|
||||
, primary(4, 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user