diff --git a/server/simulators.hpp b/server/simulators.hpp index bcaf66e..3c481c8 100644 --- a/server/simulators.hpp +++ b/server/simulators.hpp @@ -8,7 +8,8 @@ #include "simulator_base.hpp" #include "websocket.hpp" -#define INSERT_SIMULATOR(type) m_simulators.insert(std::make_pair(type().name(), std::make_unique(&m_com, this))); +#define INSERT_SIMULATOR(type) \ + m_simulators.insert(std::make_pair(type(&m_com).name(), std::make_unique(&m_com, this))); class Simulators : public QObject {