[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
This commit is contained in:
Aeadoin 2022-09-20 09:06:01 -04:00 committed by GitHub
parent b4e46c1f7e
commit 406ea039d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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