Remove index check on Bouncer NewProjectiles

Note: even in the previous iteration of the code the search function
returned -1 if it couldn't find it in the system, which would have made
removal of projectiles by ident and owner impossible because they
weren't found anyway.

Either way, this is related to fixing #1584.
This commit is contained in:
Lucas Nicodemus 2017-12-24 20:13:53 -07:00
parent f942a6c98a
commit f2da3f6c83

View file

@ -978,7 +978,7 @@ namespace TShockAPI
short type = args.Type;
int index = args.Index;
if (index > Main.maxProjectiles || index < 0)
if (index > Main.maxProjectiles)
{
args.Player.RemoveProjectile(ident, owner);
args.Handled = true;