Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/overpass_api/data/filter_ids_by_tags.h
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ struct Tag_Entry_Listener_Value_Regex : public Tag_Entry_Listener< Id_Type >
std::vector< Id_Type > result;
for (typename std::vector< Id_Type >::const_iterator it = new_ids.begin(); it != new_ids.end(); ++it)
{
std::pair< uint64, uint64 >& timestamp_ref = timestamps[*it];
if (0 < timestamp_ref.first && timestamp_ref.first <= timestamp_ref.second)
typename std::map< Id_Type, std::pair< uint64, uint64 > >::const_iterator found = timestamps.find(*it);
if (found != timestamps.end() && 0 < found->second.first && found->second.first <= found->second.second)
result.push_back(*it);
}
std::sort(result.begin(), result.end());
Expand Down