fix: Fixes polymorph spell (#2173)
This commit is contained in:
parent
da517f56c4
commit
f0f7d44d4d
1 changed files with 1 additions and 1 deletions
|
|
@ -137,7 +137,7 @@ namespace Server.Gumps
|
|||
|
||||
var entries = Categories[cat];
|
||||
|
||||
if (ent < 0 || ent >= entries.Entries.Length)
|
||||
if (ent >= 0 && ent < entries.Entries.Length)
|
||||
{
|
||||
Spell spell = new PolymorphSpell(state.Mobile, _scroll, entries.Entries[ent].BodyID);
|
||||
spell.Cast();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue