summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/connectionbase.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/common/connectionbase.cpp b/common/connectionbase.cpp
index e2384e2..a0c5ab8 100644
--- a/common/connectionbase.cpp
+++ b/common/connectionbase.cpp
@@ -193,6 +193,11 @@ void ConnectionBase::send(const Message::p& msg) {
oa & m;
} break;
+ case Message::Types::GameEnd: {
+ Message::GameEnd::p m = dynamic_pointer_cast<Message::GameEnd>(msg);
+ oa & m;
+ } break;
+
default:
throw std::runtime_error("Serialization attempted on unknown message type.");
}