From 3da3638790cbe4e5423e1aae841497b76406d1a7 Mon Sep 17 00:00:00 2001 From: Kelsi Date: Sun, 29 Mar 2026 19:23:05 -0700 Subject: [PATCH] =?UTF-8?q?cleanup:=20remove=20misleading=20(void)reasonTy?= =?UTF-8?q?pe=20=E2=80=94=20variable=20IS=20used=20below?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The cast falsely suggests reasonType is unused, but it's read on lines 3699-3702 for AFK/vote-kick differentiation. Same class of issue as the (void)isPlayerTarget fix in commit 6731e584. --- src/game/game_handler.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/game/game_handler.cpp b/src/game/game_handler.cpp index 86fe40ef..1362f5e9 100644 --- a/src/game/game_handler.cpp +++ b/src/game/game_handler.cpp @@ -3691,8 +3691,7 @@ void GameHandler::registerOpcodeHandlers() { std::string reason; if (packet.hasData()) reason = packet.readString(); - (void)kickerGuid; - (void)reasonType; + (void)kickerGuid; // not displayed; reasonType IS used below std::string msg = "You have been removed from the group."; if (!reason.empty()) msg = "You have been removed from the group: " + reason;