Commit 267ff071 authored by Riccardo Longo's avatar Riccardo Longo
Browse files

Fixed a couple of typos

parent f01ffa1e
......@@ -54,9 +54,7 @@ Channel* Detector::GetElement(int row, int column){
Channel* Detector::GetElement(std::string _name){
for(int i=0; i < (int)m_Element.size(); i++){
if(!name.compare(m_Element->name){
return m_Element[i];
}
if(!_name.compare(m_Element.at(i)->name)) return m_Element[i];
}
std::cerr << " WARNING: Element (" << _name << ") not found! " << std::endl;
return nullptr;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment