mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 07:50:04 +00:00
Fix case where level 3 data value could be uninitialized
This commit is contained in:
parent
a77b6bea9d
commit
0c8d1aeb80
1 changed files with 1 additions and 1 deletions
|
|
@ -975,7 +975,7 @@ ProductDescriptionBlock::data_value(std::uint8_t level) const
|
|||
return std::nullopt;
|
||||
}
|
||||
|
||||
float f;
|
||||
std::optional<float> f = std::nullopt;
|
||||
|
||||
// Different products use different scale/offset formulas
|
||||
if (numberOfLevels > 16 ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue