zapit/src/getservices.cpp: bugfix, check satellite position when

adding transponder to satelliteTransponders
This commit is contained in:
[CST] Focus
2012-04-22 15:25:36 +04:00
parent e4957ce1e0
commit cb692c0274

View File

@@ -1076,9 +1076,11 @@ void CServiceManager::UpdateSatTransponders(t_satellite_position satellitePositi
break;
}
}
ret = stransponders.insert(transponder_pair_t(tI->first, tI->second));
if (ret.second == false)
tI->second.dump("[zapit] duplicate in sat transponders:");
if (tI->second.satellitePosition == satellitePosition) {
ret = stransponders.insert(transponder_pair_t(tI->first, tI->second));
if (ret.second == false)
tI->second.dump("[zapit] duplicate in sat transponders:");
}
}
}