fix crashing
This commit is contained in:
2026-02-14 14:31:13 +01:00
parent be22e9b814
commit 41b4684640
+2 -1
View File
@@ -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<type>(&m_com, this)));
#define INSERT_SIMULATOR(type) \
m_simulators.insert(std::make_pair(type(&m_com).name(), std::make_unique<type>(&m_com, this)));
class Simulators : public QObject
{