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 {