From 41b4684640f2bec8b1c57a5967468638f451b08b Mon Sep 17 00:00:00 2001 From: Sander Speetjens Date: Tue, 22 Apr 2025 12:59:34 +0200 Subject: [PATCH] b server fix crashing --- server/simulators.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 {