Skip to content

Commit

Permalink
review: sonarcloud
Browse files Browse the repository at this point in the history
  • Loading branch information
kokekanon committed Nov 8, 2024
1 parent b7ac615 commit 313eb99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/protocolgameparse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<Otc::GameFeature>(msg->getU8());
const bool enabled = static_cast<bool>(msg->getU8());
const auto enabled = static_cast<bool>(msg->getU8());
if (enabled) {
g_game.enableFeature(feature);
} else {
Expand Down

0 comments on commit 313eb99

Please sign in to comment.