Revision a224a762
fix scout sim BOM sender id
scout/scoutsim/src/sim_frame.cpp | ||
---|---|---|
785 | 785 |
} |
786 | 786 |
|
787 | 787 |
if(is_inrange(emitter_pos, bom_pos, bom_aperture, bom_distance)) { |
788 |
string em_id_str = m_it->first.substr(m_it->first.find("_")); |
|
788 |
string em_id_str = m_it->first.substr(m_it->first.find("_")+1);
|
|
789 | 789 |
int emitter_id = atoi(em_id_str.c_str()); |
790 | 790 |
it->second->update_BOM(i, 1, emitter_id); |
791 | 791 |
} |
Also available in: Unified diff