mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-26 21:51:13 +01:00
b simulators
fix for if sim does not exist
This commit is contained in:
@@ -53,6 +53,11 @@ void Simulators::switch_simulator(std::string name)
|
|||||||
this->m_simulators.at(m_current_simulator)->stop();
|
this->m_simulators.at(m_current_simulator)->stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this->m_simulators.find(name) == this->m_simulators.end())
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
this->m_current_simulator = name;
|
this->m_current_simulator = name;
|
||||||
this->run();
|
this->run();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user