mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 21:01:29 +00:00
[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:
parent
b4e46c1f7e
commit
406ea039d7
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user