From 406ea039d7a8de41eee9f74c5d646366ccae634e Mon Sep 17 00:00:00 2001 From: Aeadoin <109764533+Aeadoin@users.noreply.github.com> Date: Tue, 20 Sep 2022 09:06:01 -0400 Subject: [PATCH] [Bug Fix] Fix Spellinfo Command to work with SpellIDs above int16 (#2437) * Fix Spellinfo Command SpellIDs to work above int16 * Updated to use int32_t --- zone/gm_commands/spellinfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zone/gm_commands/spellinfo.cpp b/zone/gm_commands/spellinfo.cpp index a40a3be66..7b9720fe1 100755 --- a/zone/gm_commands/spellinfo.cpp +++ b/zone/gm_commands/spellinfo.cpp @@ -6,7 +6,7 @@ void command_spellinfo(Client *c, const Seperator *sep) c->Message(Chat::White, "Usage: #spellinfo [spell_id]"); } else { - short int spell_id = atoi(sep->arg[1]); + int32_t spell_id = atoi(sep->arg[1]); const struct SPDat_Spell_Struct *s = &spells[spell_id]; c->Message(Chat::White, "Spell info for spell #%d:", spell_id); c->Message(Chat::White, " name: %s", s->name);