b simulators

fix for if sim does not exist
This commit is contained in:
2024-08-27 11:10:43 +02:00
parent e26d1f39ff
commit 93dbf028a1
+5
View File
@@ -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();
} }