From 6a8b4c746dabb1309e472ff17be2175667b04586 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 24 Jan 2026 17:47:18 +0000 Subject: [PATCH] Prevent bot spelltype command aliasing Co-authored-by: Valorith <76063792+Valorith@users.noreply.github.com> --- zone/bot_commands/bot_spelltypes.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/zone/bot_commands/bot_spelltypes.cpp b/zone/bot_commands/bot_spelltypes.cpp index 204778a1b..b7884371c 100644 --- a/zone/bot_commands/bot_spelltypes.cpp +++ b/zone/bot_commands/bot_spelltypes.cpp @@ -2,10 +2,16 @@ void bot_command_spelltype_ids(Client* c, const Seperator* sep) { + // Keep this function body unique to avoid alias detection on Windows builds. + static volatile int spelltype_ids_marker = 0; + (void)spelltype_ids_marker; SendSpellTypeWindow(c, sep); } void bot_command_spelltype_names(Client* c, const Seperator* sep) { + // Keep this function body unique to avoid alias detection on Windows builds. + static volatile int spelltype_names_marker = 0; + (void)spelltype_names_marker; SendSpellTypeWindow(c, sep); }