fix: Fix crash from not enough fish to kill in Aquarium (#2092)
This commit is contained in:
parent
a8b625b338
commit
ea364237f0
1 changed files with 4 additions and 0 deletions
|
|
@ -562,6 +562,10 @@ namespace Server.Items
|
|||
}
|
||||
|
||||
toKill.Shuffle();
|
||||
if (amount > toKill.Count)
|
||||
{
|
||||
amount = toKill.Count;
|
||||
}
|
||||
|
||||
for (var i = 0; i < amount; i++)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue