From 08e6b882f361e7f3c91838261393d581ba3843e2 Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Wed, 22 Oct 2025 23:29:43 -0700 Subject: [PATCH] fix incorrect game metadata logic in proxy update --- src/Episode3/DataIndexes.hh | 2 +- src/ProxyCommands.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Episode3/DataIndexes.hh b/src/Episode3/DataIndexes.hh index cf8dbd0c..d640be68 100644 --- a/src/Episode3/DataIndexes.hh +++ b/src/Episode3/DataIndexes.hh @@ -1587,7 +1587,7 @@ private: class MapIndex { public: - MapIndex(const std::string& directory); + explicit MapIndex(const std::string& directory); class VersionedMap { public: diff --git a/src/ProxyCommands.cc b/src/ProxyCommands.cc index af06dec5..af756ac1 100644 --- a/src/ProxyCommands.cc +++ b/src/ProxyCommands.cc @@ -1658,7 +1658,7 @@ static asio::awaitable S_64(shared_ptr c, Channel::Messag c->proxy_session->is_in_lobby = false; c->proxy_session->is_in_game = true; c->proxy_session->is_in_quest = false; - if constexpr (sizeof(cmd) > sizeof(S_JoinGame_DCNTE_64)) { + if constexpr (sizeof(*cmd) > sizeof(S_JoinGame_DCNTE_64)) { c->proxy_session->lobby_event = cmd->event; c->proxy_session->lobby_difficulty = cmd->difficulty; c->proxy_session->lobby_section_id = cmd->section_id;