Revert "Change Utils.SearchProjectile to return -1 in error"
This reverts commit e19fd22fe0.
This commit is contained in:
parent
0082b25533
commit
f942a6c98a
1 changed files with 2 additions and 2 deletions
|
|
@ -925,7 +925,7 @@ namespace TShockAPI
|
|||
/// </summary>
|
||||
/// <param name="identity">identity</param>
|
||||
/// <param name="owner">owner</param>
|
||||
/// <returns>projectile ID or -1 if not found</returns>
|
||||
/// <returns>projectile ID</returns>
|
||||
public int SearchProjectile(short identity, int owner)
|
||||
{
|
||||
for (int i = 0; i < Main.maxProjectiles; i++)
|
||||
|
|
@ -933,7 +933,7 @@ namespace TShockAPI
|
|||
if (Main.projectile[i].identity == identity && Main.projectile[i].owner == owner)
|
||||
return i;
|
||||
}
|
||||
return -1;
|
||||
return 1000;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue