From 2a0cf45f4d19008eea6a1d2c4b696e8c5607f170 Mon Sep 17 00:00:00 2001 From: ebbit1q Date: Thu, 18 Sep 2025 12:46:37 +0200 Subject: [PATCH] fix linker errors --- common/CMakeLists.txt | 1 + common/server/game/server_abstract_participant.h | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/common/CMakeLists.txt b/common/CMakeLists.txt index 15bb9697d..3b8278755 100644 --- a/common/CMakeLists.txt +++ b/common/CMakeLists.txt @@ -17,6 +17,7 @@ set(common_SOURCES passwordhasher.cpp rng_abstract.cpp rng_sfmt.cpp + server/game/server_abstract_participant.cpp server/game/server_arrow.cpp server/game/server_arrowtarget.cpp server/game/server_card.cpp diff --git a/common/server/game/server_abstract_participant.h b/common/server/game/server_abstract_participant.h index ec4cd9ab1..895fd26e7 100644 --- a/common/server/game/server_abstract_participant.h +++ b/common/server/game/server_abstract_participant.h @@ -73,7 +73,10 @@ public: bool _judge, Server_AbstractUserInterface *_handler); ~Server_AbstractParticipant() override; - virtual void prepareDestroy(); + virtual void prepareDestroy() + { + removeFromGame(); + }; void removeFromGame(); Server_AbstractUserInterface *getUserInterface() const {