CStaticInterference: Fix id reference

This commit is contained in:
Luke Street 2020-05-27 12:45:17 -04:00
parent 330eeebf08
commit c4ccb1cfce
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ CStaticInterference::CStaticInterference(size_t sourceCount) { x0_sources.reserv
void CStaticInterference::RemoveSource(TUniqueId id) {
const auto iter =
std::find_if(x0_sources.cbegin(), x0_sources.cend(), [id](const auto& src) { return src.id == id; });
std::find_if(x0_sources.cbegin(), x0_sources.cend(), [id](const auto& src) { return src.x0_id == id; });
if (iter == x0_sources.cend()) {
return;