Skip to content

Commit b182b80

Browse files
committed
fix: using consts
1 parent ceb65fd commit b182b80

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/server/network/protocol/protocolgame.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -5595,7 +5595,7 @@ void ProtocolGame::parseForgeEnter(NetworkMessage &msg) {
55955595
}
55965596

55975597
// 0xBF -> 0 = fusion, 1 = transfer, 2 = dust to sliver, 3 = sliver to core, 4 = increase dust limit
5598-
auto actionType = static_cast<ForgeAction_t>(msg.getByte());
5598+
const auto actionType = static_cast<ForgeAction_t>(msg.getByte());
55995599

56005600
bool convergence = false;
56015601
uint16_t firstItem = 0;
@@ -5610,8 +5610,8 @@ void ProtocolGame::parseForgeEnter(NetworkMessage &msg) {
56105610
}
56115611

56125612
if (actionType == ForgeAction_t::FUSION) {
5613-
bool usedCore = convergence ? false : msg.getByte();
5614-
bool reduceTierLoss = convergence ? false : msg.getByte();
5613+
const bool usedCore = convergence ? false : msg.getByte();
5614+
const bool reduceTierLoss = convergence ? false : msg.getByte();
56155615
g_game().playerForgeFuseItems(player->getID(), actionType, firstItem, tier, secondItem, usedCore, reduceTierLoss, convergence);
56165616
} else if (actionType == ForgeAction_t::TRANSFER) {
56175617
g_game().playerForgeTransferItemTier(player->getID(), actionType, firstItem, tier, secondItem, convergence);

0 commit comments

Comments
 (0)