diff --git a/src/client/protocolgameparse.cpp b/src/client/protocolgameparse.cpp index 01c2da130..f8fbe89e6 100644 --- a/src/client/protocolgameparse.cpp +++ b/src/client/protocolgameparse.cpp @@ -5204,7 +5204,7 @@ void ProtocolGame::parseFeatures(const InputMessagePtr& msg) const uint16_t features = msg->getU16(); for (auto i = 0; i < features; ++i) { const auto feature = static_cast(msg->getU8()); - const bool enabled = static_cast(msg->getU8()); + const auto enabled = static_cast(msg->getU8()); if (enabled) { g_game.enableFeature(feature); } else {