cleanup: remove misleading (void)reasonType — variable IS used below

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.
This commit is contained in:
Kelsi 2026-03-29 19:23:05 -07:00
parent 84c0ced228
commit 3da3638790

View file

@ -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;