fixed NULL error in matchParallelAndDist function

This commit is contained in:
ALEXks
2025-05-18 15:42:38 +03:00
parent a719dea05f
commit 12d3c2c8e5
2 changed files with 2 additions and 2 deletions

View File

@@ -1601,7 +1601,7 @@ static bool matchParallelAndDist(const pair<DIST::Array*, const DistrVariant*>&
parallelOn = NULL;
for (auto& refOn : realRefs)
{
linkWithTempl = parallelOn->GetLinksWithTemplate(regionId);
linkWithTempl = refOn->GetLinksWithTemplate(regionId);
int z = 0;
for (int k = 0; k < linkWithTempl.size(); ++k)
if (linkWithTempl[k] != -1)