fix: Fix crash from not enough fish to kill in Aquarium (#2092)

This commit is contained in:
Kamron Batman 2025-01-25 18:45:20 -08:00 committed by GitHub
parent a8b625b338
commit ea364237f0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -562,6 +562,10 @@ namespace Server.Items
}
toKill.Shuffle();
if (amount > toKill.Count)
{
amount = toKill.Count;
}
for (var i = 0; i < amount; i++)
{