From 2e347683ab12937dffc3a11d9fa469a99bf2d051 Mon Sep 17 00:00:00 2001 From: Pedro Henrique Alves Cruz Date: Sat, 16 Nov 2024 18:17:33 -0300 Subject: [PATCH] fix: sonar --- src/server/network/protocol/protocolgame.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/server/network/protocol/protocolgame.cpp b/src/server/network/protocol/protocolgame.cpp index 94e365e1887..32d68ff78f9 100644 --- a/src/server/network/protocol/protocolgame.cpp +++ b/src/server/network/protocol/protocolgame.cpp @@ -5746,8 +5746,10 @@ void ProtocolGame::sendForgeHistory(uint8_t page) { auto historyVector = player->getForgeHistory(); auto historyVectorLen = historyVector.size(); - uint16_t currentPage, lastPage = 1; - uint16_t pageFirstEntry, pageLastEntry = 0; + uint16_t currentPage = 1; + uint16_t lastPage = 1; + uint16_t pageFirstEntry = 0; + uint16_t pageLastEntry = 0; std::vector historyPerPage; if (historyVectorLen > 0) {