From 313eb99d371bfa673036ee3c7dfb4929d0459103 Mon Sep 17 00:00:00 2001 From: kokekanon <114332266+kokekanon@users.noreply.github.com> Date: Thu, 7 Nov 2024 23:40:02 -0300 Subject: [PATCH] review: sonarcloud --- src/client/protocolgameparse.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {