mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 23:30:04 +00:00
Fix iterator advancement
This commit is contained in:
parent
608b1af24f
commit
5be8d7b7c0
1 changed files with 8 additions and 1 deletions
|
|
@ -703,7 +703,14 @@ void Level2ProductView::ComputeSweep()
|
|||
std::int32_t numberOfNextDataMomentGates = 0;
|
||||
if (smoothingEnabled)
|
||||
{
|
||||
const auto& nextRadialPair = *(++it);
|
||||
// Smoothing requires the next radial pair as well
|
||||
auto nextIt = std::next(it);
|
||||
if (nextIt == radarData->cend())
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
const auto& nextRadialPair = *(nextIt);
|
||||
const auto& nextRadialData = nextRadialPair.second;
|
||||
nextMomentData = nextRadialData->moment_data_block(p->dataBlockType_);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue