Skip to content

Commit

Permalink
fix: Fix crash from not enough fish to kill in Aquarium (#2092)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamronbatman authored Jan 26, 2025
1 parent a8b625b commit ea36423
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Projects/UOContent/Items/Aquarium/Aquarium.cs
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,10 @@ public virtual void KillFish(int amount)
}

toKill.Shuffle();
if (amount > toKill.Count)
{
amount = toKill.Count;
}

for (var i = 0; i < amount; i++)
{
Expand Down

0 comments on commit ea36423

Please sign in to comment.